How to load and play sounds recorded by Audio Sound Recorder API for .NET |
|
Audio DJ Studio API for .NET can be integrated with an existing instance of Audio Sound Recorder API for .NET in order to reproduce sounds coming from one of the available input devices.
When instancing both components inside the same form, it's highly recommended initializing Audio DJ Studio first, through a call to the InitSoundSystem method and then initializing Audio Sound Recorder API through its InitRecordingSystem method..
This integration allows the following scenarios:
• | Real-time playback of sound data coming from an input device, for example from a Microphone |
In this case the recorder will not store recorded sound data and will simply pass them to the player that will have the possibility to apply DMO effects or EAX effects during playback.
In order to activate this scenario you need to keep latency at its minimum so you must enable automatic latency check setting the CheckOutputDevicesLatency property to "True": it's important to note that this setting will only work when set at design-time. After the controls' initialization, you simply have to call the PlaySoundFromRecorderEx method and proceed with further player's operations as you would do after a normal PlaySound call. This recording/playback scenario can be stopped at any time calling the StopSoundFromRecorder method.
• | Load and playback of sound data coming from a completed recording session and stored inside a memory buffer or inside the hard-disk |
After having completed a recording session through Audio Sound Recorder API for .NET, recorded sound data will remain available inside a memory buffer or, in alternative, inside a file on the hard-disk: Audio DJ Studio API for .NET can obtain and load recorded sound data directly from the recorder calling the LoadSoundFromRecordingSession method. After calling this method you can proceed with further player's operations as you would do after a normal LoadSound call.
• | Playback of sound data still being recorded and stored inside the hard-disk |
During a recording session, where Audio Sound Recorder API for .NET is still storing recorded sound data inside a file on the hard-disk, Audio DJ Studio API for .NET can obtain and load available sound data directly from the recorder calling the LoadSoundFromRecordingSession method. After calling this method you can proceed with further player's operations as you would do after a normal LoadSound call.
It's important to note that this latest functionality is not available for sounds being stored inside a memory buffer or for sounds being saved inside a file in WAV format on the hard-disk.