Author Topic: Recording to WAV  (Read 106 times)

Anon

  • Guest
Recording to WAV
« on: 25 Aug '24 - 13:52 »
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

  • Guest
Re: Recording to WAV
« Reply #1 on: 25 Aug '24 - 13:53 »
Because i cant edit(Not logged in) a second post. I use BassEnc to create the File.

Anon

  • Guest
Re: Recording to WAV
« Reply #2 on: 25 Aug '24 - 18:07 »
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

  • Administrator
  • Posts: 26093
Re: Recording to WAV
« Reply #3 on: 26 Aug '24 - 15:31 »
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).