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
Highlighted
New Contributor
Posts: 5
Registered: ‎01-09-2013
My Device: BB10 Dev Alpha
My Carrier: Rogers

AudioRecorder - Append to existing audio file?

I have yet to discover a way to use the AudioRecorder class and have it append to an existing file when started (i.e. call prepare()). It always starts a new file. I need to call reset() occasionally to allow the audio to be reviewed using MediaPlayer, otherwise MediaPlayer fails - I assume the file remains open/locked by AudioRecorder until reset() is called.

Does anyone know a way to configure AudioRecorder such that it will append to an existing audio file? Or will I need to look at the native snd_pcm* calls that are part of the libasound library? (A considerably more complicated endeavour that I would like to avoid if possible.)