Pause sounds on game pause
Moderator: GZDoom Developers
- Bio Hazard
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
- Contact:
Pause sounds on game pause
Is there any reason why sounds don't pause when you pause the game? You could just walk through the sound channels and call FSOUND_SetPause(i,1); on every sound channel and vice-versa on unpause.
This would make it a lot easier to sync cutscenes with music. Perhaps a PlaySyncSound() ACS command should be added?
This would make it a lot easier to sync cutscenes with music. Perhaps a PlaySyncSound() ACS command should be added?
I agree. Sounds and music should pause along with the Pause button, and resume where it stopped after unpausing.
Same goes for the menu too.
Maybe some options to define whether a sound or music is paused when the menu is open. This is to make sure the original behaviour of Doom is retained when the menu is open.
Same goes for the menu too.
Maybe some options to define whether a sound or music is paused when the menu is open. This is to make sure the original behaviour of Doom is retained when the menu is open.
- Caligari87
- Admin
- Posts: 6230
- Joined: Thu Feb 26, 2004 3:02 pm
- Preferred Pronouns: He/Him
- Contact:
Re: Pause sounds on game pause
While I do like the idea, I don't think it would be that simple. How would you play the menu sounds when the game was paused?Bio Hazard wrote:You could just walk through the sound channels and call FSOUND_SetPause(i,1); on every sound channel and vice-versa on unpause.
- Bio Hazard
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
- Contact:
- Bio Hazard
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
- Contact:
Yes, but weren't two or three features added specifically for projects that needed them? They were important ones nonetheless IIRC, but still I do remember Randy posting something about a case like that...
Though the chances of it being incorporated for a quick new version soon would be ridiculous though, I assume. Still sounds useful though.
Though the chances of it being incorporated for a quick new version soon would be ridiculous though, I assume. Still sounds useful though.
- Bio Hazard
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
- Contact:
- Bio Hazard
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
- Contact:
Sorry to bring this up again, but I seriously need something like this. I have tried so many ways to get this to work, but I haven't managed to hack anything that works. I have got to have it for KDiZD and several timed cutscenes in another project of mine.
If I could just get the source to compile, I could try to make a patch, but I'm not able to (even with MinGW).
I don't even care if it's in mainstream ZDoom any time soon, I need it in GZD or 98x at least!
I have also thought about implementation, I think it should be a sndinfo option instead of an ACS function.
Anyway, sorry again to bring this up once more.
If I could just get the source to compile, I could try to make a patch, but I'm not able to (even with MinGW).
I don't even care if it's in mainstream ZDoom any time soon, I need it in GZD or 98x at least!
I have also thought about implementation, I think it should be a sndinfo option instead of an ACS function.
Anyway, sorry again to bring this up once more.
- Bio Hazard
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
- Contact: