Recording to WAV

Started by Anon,

Anon

Hi,

whats the right way to record a device and write the Data into a WAV file? Regardless of whether I use a RECORDPROC or WASAPIPROC, data only comes into the callback if there is also sound; the callback is not called if there is silence. As a result, the recorded WAV contains no silence and is correspondingly short.

I thought I would continue to use the DummyStream and add it to a MixerStream (with BASSFlag.MIXER_NONSTOP) and record the mixer, but the recording only has silence.


Anon

Because i cant edit(Not logged in) a second post. I use BassEnc to create the File.

Anon

I have found a solution, I just run an empty MixerStream on the corresponding output device, so I have the recording exactly as expected.

Ian @ un4seen

Just to confirm, a "loopback" recording device will indeed only deliver data while the corresponding output device is in use (by any app). If I recall correctly, when using BASSWASAPI, just calling BASS_WASAPI_Init on the device will suffice for that (don't need to call BASS_WASAPI_Start).