Does Alljoyn AudioService supports MP3

asked 2014-06-16 11:47:44 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm interested in streaming MP3 audio with AllJoyn Audio Service Framework, does it supports MP3 or just WAV files? If not, is there any orietantion that i can follow to implement this? Thanks in advance!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-06-16 19:33:40 -0700

bspencer gravatar image

The AllJoyn Audio Service is a low level byte protocol for PCM/Uncompressed audio. You would need to decode and then send the decoded date over the wire. It depends on what platform you are using on how to decode the MP3. The decoding of an MP3 is outside the scope of the AllJoyn Audio Service. When you do have raw data to stream you can follow the sample applications in the git repository to see how to use the API's.

edit flag offensive delete publish link more


@bspencer what class to handle audio data for transmit to audio sink? i try convert mp3 to PCM I think it's in the class WavDataSource.cc. is it true? Thanks (:

Yossi Setiawan ( 2014-08-06 20:35:09 -0700 )edit

You would want to make a new MP3DataSource.cc and model it off of the WavDataSource.cc file. Then when you have an mp3 file use the MP3DataSource which would decode the file into raw PCM data.

bspencer ( 2014-08-14 10:55:23 -0700 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2014-06-16 11:47:44 -0700

Seen: 200 times

Last updated: Jun 16 '14