stargatedaw / stargate

Innovation-first digital audio workstation (DAW), instrument and effect plugins, wave editor
GNU General Public License v3.0
686 stars 36 forks source link

Strange behaviour of save/discard when recording audio (Win10) #29

Closed DreadDendy closed 2 years ago

DreadDendy commented 2 years ago

Hello, I have found something strange. When first one recording discarded and second one saved then actually saved the first one.

My example is for using a microphone, but with the instruments there will be no differences. Steps to reproduce:

  1. Start recording audio, say something to the microphone
  2. Stop recording and discard saving
  3. Start recording audio again, say somehing different to the microphone
  4. Stop recording and save sample
  5. Check the sample and see that it is actually the sample from step 1

Here is the log file. stargate.log

ghost commented 2 years ago

Thanks for reporting. I'm traveling right now, I'll fix this when i return in a few days

ghost commented 2 years ago

Confirmed that is only happens on Windows. Seems to be a bug in libsndfile. So I cleaned up how recorded audio files are handled to make it safer and more robust, and that seemed to fix the bug. The fix will be in the next release sometime soon.

As always, thanks for reporting!