mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-27 13:04:21 +01:00
fix sfx vol
This commit is contained in:
parent
a79008f95c
commit
2301ce3e45
@ -42,7 +42,7 @@ void GuiSound::Play()
|
|||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
case SOUND_PCM:
|
case SOUND_PCM:
|
||||||
vol = 2.55f*(volume*GCSettings.SFXVolume);
|
vol = 0.0255f*(volume*GCSettings.SFXVolume);
|
||||||
voice = ASND_GetFirstUnusedVoice();
|
voice = ASND_GetFirstUnusedVoice();
|
||||||
if(voice >= 0)
|
if(voice >= 0)
|
||||||
ASND_SetVoice(voice, VOICE_STEREO_16BIT, 48000, 0,
|
ASND_SetVoice(voice, VOICE_STEREO_16BIT, 48000, 0,
|
||||||
@ -134,7 +134,7 @@ void GuiSound::SetVolume(int vol)
|
|||||||
if(voice < 0)
|
if(voice < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
int newvol = 2.55f*(volume*GCSettings.SFXVolume);
|
int newvol = 0.0255f*(volume*GCSettings.SFXVolume);
|
||||||
|
|
||||||
switch(type)
|
switch(type)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user