How to export a recorded sound |
|
After completing one or more recording sessions, the current recorded sound, or a defined range within the recorded sound, can be resampled and exported into a disk file; the first thing to decide is the format of the exported sound: for this purpose you need to set the EncodeFormats.ForExporting property to one of the available encoding formats.
Each encoding format set into the EncodeFormats.ForExporting property has its own settings which can be controlled through sub-properties of the EncodeFormats property: for example, if the chosen encoding format should be ENCODING_FORMAT_WAV you would have to modify settings of the EncodeFormats.WAV property, if chosen encoding format should be ENCODING_FORMAT_MP3 you would have to modify settings of the EncodeFormats.MP3 property and so on for the remaining accepted encoding formats.
At this point the recorded sound can be resampled and exported to a disk file calling the RecordedSound.RequestExportToFile method: a successful call to this method will fire the SoundExportStarted event. Once the exporting session has been performed completely, the control will fire the SoundExportDone event. Exporting advancement can be controlled through the SoundExportPerc event.
The exporting session can be cancelled through the RecordedSound.CancelExportToFile method.
During an exporting session in which the recorded sound is being down-mixed to lower frequencies (for example from 44100 Hz to 11025 Hz), the SetDownmixFilterQuality method allows applying an anti-aliasing filter to exported sounds, allowing better quality results.