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
absingh
Posts: 2
Registered: ‎03-22-2013
My Device: BB10 - N series
My Carrier: prototype device

Native app - Play Wav - snd_pcm_plugin_write issue BB10 N Series

I am using the BB10 Play WAV sample in my application to play wav files

https://github.com/blackberry/NDK-Samples/tree/master/PlayWav

 

My code is crashing at :

 written = snd_pcm_plugin_write(pcm_handle, sample_buffer, bytes_read);

 

The file is read correctly and sample_buffer and bytes_read values are correct.

 

what can be possible reason which can cause this crash?

 

any help is much appreciated.

Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Native app - Play Wav - snd_pcm_plugin_write issue BB10 N Series

Which sdk you use for this sample ? Because I see that you have BB10 N series device, but which one ? Dev Alpha C or something else ?
Please use plain text.
New Contributor
absingh
Posts: 2
Registered: ‎03-22-2013
My Device: BB10 - N series
My Carrier: prototype device

Re: Native app - Play Wav - snd_pcm_plugin_write issue BB10 N Series

My device is Dev Alpha B...

 

SDK version 10.0.9.

 

I am not using QNX IDE for my application. 

 

The application is basically a C++ managed code and through which I was able to play sound in first pre lease firm ware versionof BB10N series device....On Dev Alpha B device , sound was perfectly allright but

In later version or pre release firmare version i.e. 10.1.0.422 and 10.1.0.582, sound gets corrupted. 

 

So I am trying to get the same play wav sample sound code into my application.

 

The confusing part is ... the build which is not able to play sound proper on firm ware version .422/.582 is playing sound correctly on L series devices and BB10 N series firmware version 10.1.0.57.

 

Please suggest what I need to check now.

 

Thanks

Please use plain text.
Developer
borceg
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: Native app - Play Wav - snd_pcm_plugin_write issue BB10 N Series

[ Edited ]

I don't have access to fw 10.1.0.422 and 10.1.0.582 for Dev Alpha B, and you need propper SDK version matching those fw versions.

Please use plain text.