Skip to content

Commit

Permalink
Ensure initial volume for CD music is properly set.
Browse files Browse the repository at this point in the history
  • Loading branch information
b-kurczynski committed Nov 12, 2024
1 parent a826a16 commit f5c0948
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DETHRACE/common/sound.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,11 @@ int DRS3StartCDA(tS3_sound_id pCDA_id) {
}
gLast_tune = pCDA_id;
gCDA_is_playing = DRS3StartSoundNoPiping(gMusic_outlet, pCDA_id);
#if defined(DETHRACE_FIX_BUGS)
// Not a bug, but this is the less abusing place
// where the initial music volume might be set with success.
DRS3SetOutletVolume(gMusic_outlet, 42 * gProgram_state.music_volume);
#endif
gCDA_tag = gCDA_is_playing;
if (!gCDA_is_playing) {
gCD_is_disabled = 1;
Expand Down

0 comments on commit f5c0948

Please sign in to comment.