We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 134fa08 commit 42d288eCopy full SHA for 42d288e
Nu/Nu/Audio/AudioPlayer.fs
@@ -303,9 +303,9 @@ type [<ReferenceEquality>] SdlAudioPlayer =
303
| Some audioAsset ->
304
match audioAsset with
305
| WavAsset wavAsset ->
306
- SDL_mixer.Mix_VolumeChunk (wavAsset, int (soundDescriptor.Volume * audioPlayer.MasterSoundVolume * single SDL_mixer.MIX_MAX_VOLUME)) |> ignore
307
let channel = SDL_mixer.Mix_PlayChannel (-1, wavAsset, 0)
308
if channel > -1 then
+ SDL_mixer.Mix_Volume (channel, int (soundDescriptor.Volume * audioPlayer.MasterSoundVolume * single SDL_mixer.MIX_MAX_VOLUME)) |> ignore
309
let pan = soundDescriptor.Panning |> max -1.0f |> min 1.0f
310
let left = byte (255.0f * (1.0f - max 0.0f pan))
311
let right = byte (255.0f * (1.0f + min 0.0f pan))
0 commit comments