Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

We use imedia interface to play raw audio data.The case we have done could only run on emulator.It crashes on handsets.We do not know why.

We implement the interface AudioSource which is inherited from ISource.

Set media data:
AEEMediaWaveSpec information could be get from file header(eg, .wav file).ISource could be created with AudioSource_New.Then call the function IMEDIA_SetMediaDataEx , register the callback functioin and call IMEDIA_Play.

Read and Readable:
We found that once IMEDIA_Play is executed, Brew will call the function AudioSource_Read.In this function it read raw data from source.It return ISOURCE_END when all the data have been read.If data is unavailable it returns ISOURCE_WAIT.Then Brew will call the function AudioSource_Readable.In this function we store the pointer which points to AEECallback.After updating data we notify this pointer and then Brew will call AudioSource_Read.

Any advice and replay would be appreciated

Hi,
How did you create IMedia Interface for real time audio streaming?
Thanks
Tonmoy

Hi,
How did you create IMedia Interface for real time audio streaming?
Thanks
Tonmoy