Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Posts: 26
Registered: ‎01-06-2013
My Device: Playbook developer
My Carrier: NA

No more support for audio at 22kHz ?

[ Edited ]


Running on Playbook our app can play back audio using OpenAL at 22kHz.  Porting to BB10 now, I am getting the warning message in the console:


AL lib: UpdateDeviceParams: Failed to set 22050hz, got 48000hz instead


This is running on the simulator, is it different with the actual hardware?  Is 22kHz really not supported anymore?


Here's a snippet:

    // Initialize OpenAL
	fDevice = alcOpenDevice(NULL); // select the "preferred device"
	if (fDevice)
		// use the device to make a context
        int params[3];
        params[0] = ALC_FREQUENCY;
        params[1] = 22050;
        params[2] = 0;
		fContext = alcCreateContext(fDevice, params);