libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
10k stars 1.85k forks source link

Assertion failure at SDL_CaptureAudioThreadIterate #8402

Open icculus opened 1 year ago

icculus commented 1 year ago
Assertion failure at SDL_CaptureAudioThreadIterate (/home/icculus/projects/SDL/src/audio/SDL_audio.c:1061), triggered 1 time:
  'stream->src_spec.channels == device->spec.channels'
addiment commented 6 months ago

Would like to re-open this, I just built SDL3 from source (current commit) and am experiencing this issue both in my own code and in the test code. Currently on Debian 12. Running the testaudiocapture program and changing the audio input device will cause this same error message to show up whenever the window is clicked (i.e. to resume the input stream). Perhaps I am using the API incorrectly, but given that the test program also crashes, I don't believe this to be the case.

Assertion failure at SDL_CaptureAudioThreadIterate (/home/addiment/Projects/SDL/src/audio/SDL_audio.c:1257), triggered 4 times:
  'stream->src_spec.channels == device->spec.channels'

If "ignore" is pressed, execution resumes, but audio cannot be recorded or played back, and the "triggered X times" increments.