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

Developer

Forums

Forums:

Hi!

I am playing back real-time generated PCM sound data using a custom ISource. I just discovered that IMEDIA_Pause won't work when using an ISource for input data. However it works just fine when using a sound file for input. I believe this is a bug in IMEDIA - am I right about this?

Are there any known workarounds?

Regards,
Johan

Yes, there is a issue with calling IMEDIA_Pause() on a media stream. This issue might have been fixed on the device as a patch had been released to the OEMs.
For now the work-around from an app point to view to implement the IMEDIA_Pause()/IMEDIA_Resume() behavior would be to stop providing streaming data to the ISOURCE_Read() requests (by setting up some flags internally), thereby causing playback to pause. Similarly start feeding the data again to resume playback.

Yes, there is a issue with calling IMEDIA_Pause() on a media stream. This issue might have been fixed on the device as a patch had been released to the OEMs.
For now the work-around from an app point to view to implement the IMEDIA_Pause()/IMEDIA_Resume() behavior would be to stop providing streaming data to the ISOURCE_Read() requests (by setting up some flags internally), thereby causing playback to pause. Similarly start feeding the data again to resume playback.