summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2009-10-15 02:04:27 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2009-10-15 02:04:27 +0000
commitfeea7ebed50313e5986a36b1de8baa03158fff7d (patch)
tree64067c5d7dd9b115e27b647386d69c3df683989e /Source/Core/AudioCommon
parentb8bdb7cb8bf5015ec1f0810c46466b5bb4faba66 (diff)
Turns out that if one fails to use pkg-config to configure alsa, some other ancient library gets linked in or something. - TD-Linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4424 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/AudioCommon')
-rw-r--r--Source/Core/AudioCommon/Src/AlsaSoundStream.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/Core/AudioCommon/Src/AlsaSoundStream.cpp b/Source/Core/AudioCommon/Src/AlsaSoundStream.cpp
index 39221c00ea..a2ec98608b 100644
--- a/Source/Core/AudioCommon/Src/AlsaSoundStream.cpp
+++ b/Source/Core/AudioCommon/Src/AlsaSoundStream.cpp
@@ -118,12 +118,8 @@ bool AlsaSound::AlsaInit()
ERROR_LOG(AUDIO, "Sample format not available: %s\n", snd_strerror(err));
return false;
}
-
- // This is weird - if I do pass in a pointer to a variable, like the header
- // wants me to, the sample rate goes mad. It seems that the alsa header
- // doesn't match the library we link in :( If anyone know why, i'd
- // appreciate if you let me know - ector.
- err = snd_pcm_hw_params_set_rate_near(handle, hwparams, (unsigned int *)sample_rate, &dir);
+
+ err = snd_pcm_hw_params_set_rate_near(handle, hwparams, &sample_rate, &dir);
if (err < 0)
{
ERROR_LOG(AUDIO, "Rate not available: %s\n", snd_strerror(err));