OS/2, eCS & ArcaOS - Technical > Programming
Strange behaviour in SDL2
David McKenna:
Martin,
When you don't have sound and PRBoom is open, have you tried turning the desktop volume knob a little to see if that brings it back? Jochen said that might help...
Regards,
Martin Iturbide:
--- Quote from: David McKenna on August 19, 2023, 07:25:43 pm ---Martin,
When you don't have sound and PRBoom is open, have you tried turning the desktop volume knob a little to see if that brings it back? Jochen said that might help...
Regards,
--- End quote ---
Hi Dave
I had restarted PrBoom+ like 10 times:
- 4 times the sound came back without any special action
- The rest 6 times with no sound, it worked raising the volume withe Volume knob utility. Sound and music for back each time.
So yes, raising the volume knob worked better than restarting the machine ;D
Regards
Jochen Schäfer:
Yeah, that was my problem, which started this thread. I'm seeing the DART device being opened, but the callback for filling the samples never gets called, so there is no sound.
But when some other sound event, like the volume knob or a sound notification, triggers the callback.
Lars:
By the way, was the device opened as shared (via the corresponding SDL env var)? Because if yes, it might be necessary to acquire the device after it is opened and release it before close. Would need to add this to the SDL2 library.
Navigation
[0] Message Index
[*] Previous page
Go to full version