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
techie74
Posts: 7
Registered: ‎12-05-2012
My Device: BB10

Audio Library functions on BB10

Hi, 

 

THere is the ALSA function   'snd_pcm_get_params' on Linux that gives the buffersize and period size. I am porting some code so wanted to know how to get the buffer size and period size using an equivalent BB10 function?

 

 

int snd_pcm_get_params(snd_pcm_t * pcm,
  snd_pcm_uframes_t * buffer_size,
  snd_pcm_uframes_t * period_size 

 

)

 

 

Is the frag_size returned in the   snd_pcm_channel_setup_t  structure equal to buffer size? 

 

Thanks