Copyright © 2001-2023 MultiMedia Soft

How to load and play sounds recorded by Active Sound Recorder

Previous pageReturn to chapter overviewNext page

Starting from version 3.0, Active DJ Studio can be integrated with an existing instance of Active Sound Recorder in order to reproduce sounds coming from one of the available input devices.

When instancing both controls inside the same form, it's highly recommended initializing Active DJ Studio first, through a call to the InitDJSystem method and then initializing Active Sound Recorder through its InitRecorder 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 Active Sound Recorder, recorded sound data will remain available inside a memory buffer or, in alternative, inside a file on the hard-disk: Active DJ Studio 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 Active Sound Recorder is still storing recorded sound data inside a file on the hard-disk, Active DJ Studio can obtain and load available sound data directly from the recorder calling the LoadSoundFromRecordingSession method: this 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.