StockAudioRecorder save to file (RecordToFile)- append mode

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

StockAudioRecorder save to file (RecordToFile)- append mode

Postby dev.makimax » October 4th, 2013, 11:05 am

Dear support,
we are facing the follwing situation. We would like to:
- record audio to a file
- save the file
- start recording again on the same file (in append mode)

We tried using:
- StockAudioRecorder1.RecordToFile
- StockAudioRecorder1.Stop
- and again StockAudioRecorder1.RecordToFile
but the file is overwritten.

So we tried
- using RecordToStock
- adding a new WaveCollection every time
- calling savetofile for writing the waves
It works, but as the waves are big, they have to stay in memory. Therefore it would be nice to write them directly to file.

Is there any way to call RecordToFile in append mode (naturally the file will have the same PCM format)?

Many thanks for your great job!!!
Posts: 3
Joined: May 22nd, 2013, 3:39 pm

Re: StockAudioRecorder save to file (RecordToFile)- append m

Postby Kambiz » October 13th, 2013, 10:39 am

A simple solution is using TWaveFile or TWaveStream class to merge old and new content into a single file.
User avatar
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 2 guests