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: 9
Registered: ‎03-29-2010
My Device: blod
My Carrier: ww

Help!! QtPlaybookSDK not play the sound??

Help me?? Qt does not support sound playback? Code is as follows

QAudioFormat format;
	format.setFrequency(codecContext->sample_rate);
	format.setChannels(2);
	format.setSampleSize(16);
	format.setCodec("audio/pcm");
	format.setByteOrder(QAudioFormat::LittleEndian);
	format.setSampleType(QAudioFormat::SignedInt);
	QAudioDeviceInfo info(QAudioDeviceInfo::defaultOutputDevice());

	if (!info.isFormatSupported(format))
	{
		qWarning() << "raw audio format not supported by backend, cannot play audio.";
		format = info.nearestFormat(format);
	}

 





New Contributor
Posts: 9
Registered: ‎03-29-2010
My Device: blod
My Carrier: ww

Re: Help!! QtPlaybookSDK not play the sound??

Why no one replies?

Highlighted
New Developer
Posts: 10
Registered: ‎07-05-2012
My Device: BlackBerry 10 Dev Alpha
My Carrier: x

Re: Help!! QtPlaybookSDK not play the sound??

Did you include "<action>play_audio</action>" in your bar-descriptor.xml file?

Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Help!! QtPlaybookSDK not play the sound??

You will need QtMultimedia library in order to play sound and video from Qt app on PlayBook. BB10 already supports this in current api release