diff options
author | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-04-10 15:04:18 +0000 |
---|---|---|
committer | tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2008-04-10 15:04:18 +0000 |
commit | 596265628f267cd0d91f6e834a0f78c591cd8a3e (patch) | |
tree | 67fc18e2b457b270b73a4739cb37998dea249f99 /Game/Code/Classes/UAudioPlayback_SoftMixer.pas | |
parent | de19222a6fc53d455a91a8e5c8c99c080408392b (diff) | |
download | usdx-596265628f267cd0d91f6e834a0f78c591cd8a3e.tar.gz usdx-596265628f267cd0d91f6e834a0f78c591cd8a3e.tar.xz usdx-596265628f267cd0d91f6e834a0f78c591cd8a3e.zip |
workaround for erroneously detection of 48000Hz-only devices as 44100Hz devices in portaudio
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1017 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | Game/Code/Classes/UAudioPlayback_SoftMixer.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Game/Code/Classes/UAudioPlayback_SoftMixer.pas b/Game/Code/Classes/UAudioPlayback_SoftMixer.pas index 7c7a09aa..f65b3d9a 100644 --- a/Game/Code/Classes/UAudioPlayback_SoftMixer.pas +++ b/Game/Code/Classes/UAudioPlayback_SoftMixer.pas @@ -363,8 +363,8 @@ begin end; if (SDL_BuildAudioCVT(@cvt, - srcFormat, srcFormatInfo.Channels, srcFormatInfo.SampleRate, - dstFormat, dstFormatInfo.Channels, dstFormatInfo.SampleRate) = -1) then + srcFormat, srcFormatInfo.Channels, Round(srcFormatInfo.SampleRate), + dstFormat, dstFormatInfo.Channels, Round(dstFormatInfo.SampleRate)) = -1) then begin Log.LogError(SDL_GetError(), 'TSoftMixerPlaybackStream.InitFormatConversion'); Exit; |