-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash after rendering when using soundio #2638
Comments
Been reading
My choice would be approach 2, as this avoids the problem I discovered while working on #2457, namely that stopping and restarting the audio thread may make PulseAudio choke. However, I only just discovered @andrewrk that you wrote libsoundio (woops 😅), so maybe you know a nicer way to fix this? I hope you don't mind if I mess around with your audio interface code. Please feel free to chime in at any moment. |
Fastigium has it right. 👍 |
Line in AudioSoundIo.cpp:
} |
Using recommendation "Use soundio_outstream_pause() to stop/start processing. This function may or may not work with the selected audio backend and may or may not report an error when it doesn't work. " it seems that I solved problem, but I have not tested this in not modified Mixer code. In modified code no Segmentation Fault in any combination, and no soundio_outstream_pause() errors. |
It work in unmodified code too ... Using lmms_1.2.2.tar.xz (stable release, downloadable in LMMS GitHub): File AudioSoundIo.h : Replace in: include/ /* - - - - - - - - - */ Changes in AudioSoundIo.h: [after line 112:] Changes in AudioSoundIo.cpp: Partial rewrite of: AudioSoundIo::~AudioSoundIo() Only this changes in file impl_changes.txt. All files are in files.zip . |
And some .patch.gz file against stable 1.2.2 branch : |
@firewall1110 Could you consider opening a pull request? That will make reviewing and testing much easier. |
The same patch could be applied against master. I tested exportation twice using soundio with Dummy , JACK , ALSA, PulseAudio (all using default outputs, exporting to mp3 320 bit-rate). PR is the next planned step (following LMMS GitHub default recommendations) ... |
It seems, that LMMS Bot compiled lmms-1.2.3-707+g4f5cc75-linux-x86_64.AppImage without soundio ... |
Fixed in #5681. |
cc @andrewrk
Steps to reproduce:
soundio
audio device.So what's happening here? LMMS pauses the audio device to temporarily replace it with the renderer.
AudioSoundIo::stopProcessing()
however destroysm_outstream
which would be needed again inAudioSoundIo::startProcessing()
and after that.The text was updated successfully, but these errors were encountered: