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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
New Contributor
jbrentoliver
Posts: 4
Registered: ‎01-09-2013
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.)

Please use plain text.