Welcome!

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

Reply
New Contributor
Posts: 2
Registered: ‎12-12-2012
My Device: BB10, Playbook
My Carrier: Play

BB10.0.9.1673 OpenAL problem

Hi,

I recently updated BB10 to newest version and it seems that OpenAL throws some errors - when I try to initialize OpenAL, I get ""AL lib: open_pcm_device: Could not find the device Ŕcö" message (random characters at the end). The same code works well on Playbook and it worked on previous BB10 OS versions. My code for initialization:

 

_ALDevice=alcOpenDevice(NULL);
if(_ALDevice)
{
	const ALCchar*    soundDeviceName=alcGetString(_ALDevice,ALC_DEVICE_SPECIFIER);
ALint attribs[] = {ALC_SYNC,AL_TRUE,
		   ALC_FREQUENCY,48000,
				0,0};
	_ALContext=alcCreateContext(_ALDevice,attribs);
	if(_ALContext)
	{
		alcMakeContextCurrent(_ALContext);
	}
}

 The thing is, OpenAL sometimes (very ocassionaly) initializes itself without any problem. Then of course, everything works and I don`t get mentioned message. 

Anyone got any clue what can be done about it? I`m almost sure that the problem is on the BB10 OS side...

I`d really appreciate any help,

Matt

 

Highlighted
Contributor
Posts: 24
Registered: ‎12-27-2011
My Device: Torch 9810 | PlayBook
My Carrier: Three - Indonesia

Re: BB10.0.9.1673 OpenAL problem

I'm also experienced lagging when playing sound (.ogg/.wav) using openAL since Gold SDK