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
Contributor
Posts: 28
Registered: ‎02-07-2013
My Device: blackberry 10
My Carrier: vodafone

Changing SamplingRate of wav file!

Hi,

 Is there any way to changing SamplingRate of existing wav file in bb10 using cascades?

 

 

Retired
Retired
Posts: 150
Registered: ‎10-19-2010
My Device: Not Specified
My Carrier: Rogers

Re: Changing SamplingRate of wav file!

Hi Paul

 

There is no method 'out-of-the-box' that you could take advantage of, but wav is a very simple container format and it would be pretty easy to write your own.  This diagram is a popular one that shows the format - to down-sample you simply need to modify the sample rate value, data chunk size and the data samples themselves to get what you want.

 

Alternatively you can explore what OpenAL might be able to provide.  If it can do that for you (I am not very nowledgable in OpenAL so am not sure) then writing cascades hooks into it should be straight-forward.

 

BVP