02-17-2013 10:40 PM
I am assuming you were you able to figure this out? Yes, currently the Cascades MediaPlayer API doesn't allow controlling low level settings such as "gain". Both C mmrenderer API and Cascades MediaPlayer API (which is a wrapper over the C mmrenderer API); they weren't designed for making audio editing/mixing applications where low level functionalities might be required; they were mainly designed for playback and streaming (say watching movies).
You can however set the gain via OpenAl. Note that that the OpenAl headers come bundled with the SDK and I'm sure you already know of the "pullmybeard" Cascades sample app which shows the basic usage. That source code project app comes bundled with the IDE and is also available here: https://github.com/blackberry/Cascades-Samples/tre
You can take a look at the following function for OpenAL (taken from "pullmybeard"):
alSourcef(source, AL_GAIN, gain);
09-11-2013 02:01 PM
I notice that while playing a sound and then I start the audio recorder the sounds is muted.
Is there a reason? It works fine if I play the sound using the media control but not using the AL apis.