View Issue Details

IDProjectCategoryView StatusLast Update
0002785FSSCPuser interfacepublic2013-02-09 01:27
ReporterKobrar Assigned Toniffiwan  
PrioritynormalSeveritytrivialReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.6.16 
Summary0002785: Music level resets when you change it in mission.
DescriptionAt least some sound settings in options don't seem to be preserved when altered during mission.
Steps To ReproduceOne of the ways to reproduce.

1. Run a mission. Most likely ANY, given that it has soundtrack set.
2. Press F2.
3. Change music level to lowest.
4. Go back to mission.
5. Go to F3.
6. Go back to mission.
7. Enjoy the music.

Seems to be triggered by music events too.
Escaping mission too. In options from menu music level will be the old level again.
TagsNo tags attached.

Relationships

duplicate of 0002511 closedValathil F3 to Options won't set volume properly. 

Activities

Kobrar

2013-02-01 17:27

reporter   ~0014677

Just to make clear, this seems to only affect music level and changing music level to any level does not preserve. When I exit mission and go to options from menu I see the level of music I set, but when I play a mission again, music plays as it played before changing music level. I run mission with music level X, chenge it in mission to Y, escape mission, go to options, see Y, play mission again, hear X while seeing Y in F2.

Yarn

2013-02-01 23:54

developer   ~0014678

I am only partially able to reproduce this. Your steps work for me only if it's done in the briefing, not the actual mission. When I start the mission, the music volume returns to whatever was set in the options menu. Quitting the mission and loading a different one doesn't return the music volume to what was set initially.

Kobrar

2013-02-02 13:03

reporter   ~0014681

I didn't even try to alter the music level in the briefing. I'll make more testing today. The two ways I wrote about should definitely work.

niffiwan

2013-02-05 11:22

developer   ~0014685

Last edited: 2013-02-05 11:22

Looks like F3 (hotkey screen) paused the music on entering, and then always set the default volume level (i.e. 50%) on exiting, regardless of the setting beforehand. Patch attached that should restore the previous volume level for any paused sounds.

niffiwan

2013-02-05 11:24

developer  

mantis2785-svn.patch (425 bytes)   
Index: code/sound/audiostr.cpp
===================================================================
--- code/sound/audiostr.cpp	(revision 9523)
+++ code/sound/audiostr.cpp	(working copy)
@@ -1977,7 +1977,7 @@
 
 	if ( audiostream_is_paused(i) == (int)true ) {
 		is_looping = Audio_streams[i].Is_looping();
-		audiostream_play(i, -1.0f, is_looping);
+		audiostream_play(i, Audio_streams[i].Get_Volume(), is_looping);
 	}
 }
 
mantis2785-svn.patch (425 bytes)   

niffiwan

2013-02-09 01:27

developer   ~0014690

Fix committed to trunk@9527.

Related Changesets

fs2open: trunk r9527

2013-02-08 21:06

niffiwan


Ported: N/A

Details Diff
Fix for mantis 2785: when unpausing sounds, use the previous volume, not the detault Affected Issues
0002785
mod - /trunk/fs2_open/code/sound/audiostr.cpp Diff File

Issue History

Date Modified Username Field Change
2013-02-01 16:55 Kobrar New Issue
2013-02-01 17:27 Kobrar Note Added: 0014677
2013-02-01 23:54 Yarn Note Added: 0014678
2013-02-02 13:03 Kobrar Note Added: 0014681
2013-02-05 09:54 niffiwan Assigned To => niffiwan
2013-02-05 09:54 niffiwan Status new => assigned
2013-02-05 11:21 niffiwan Relationship added duplicate of 0002511
2013-02-05 11:22 niffiwan Note Added: 0014685
2013-02-05 11:22 niffiwan Note Edited: 0014685
2013-02-05 11:24 niffiwan File Added: mantis2785-svn.patch
2013-02-05 11:24 niffiwan Status assigned => code review
2013-02-09 01:27 niffiwan Changeset attached => fs2open trunk r9527
2013-02-09 01:27 niffiwan Note Added: 0014690
2013-02-09 01:27 niffiwan Status code review => resolved
2013-02-09 01:27 niffiwan Resolution open => fixed