views:

12

answers:

0

I hope it is a standard protocol like RTSP so I just need to though the url to JMF but it is not. In C it is easy I am using LAME library. Use first 32 bit to decode the mp3struct then keep reading 70 bytes to decode to 1152 byte wav - Sample rate is fixed in 44.1. Now I need to develop a java player for it. Most of resource is for MP3 file - even load from server. The decoder I found need to load whole file before start decode.

Does there any sample/document/open source project is doing this? Basically I am thinking to use MP3SPI as decoder and use socket and BufferedInputStream to receive data. I just do not understand how to connect them together.

Thanks a lot!