mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
DSP: added automatic alsa test.
Should fix issue 1403 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4274 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -119,9 +119,10 @@ bool AlsaSound::AlsaInit()
|
||||
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.
|
||||
// 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);
|
||||
if (err < 0)
|
||||
{
|
||||
|
@ -1,3 +1,4 @@
|
||||
|
||||
# -*- python -*-
|
||||
|
||||
Import('env')
|
||||
@ -18,7 +19,7 @@ if acenv['HAVE_OPENAL']:
|
||||
if acenv['HAVE_AO']:
|
||||
files += [ 'AOSoundStream.cpp' ]
|
||||
|
||||
# TODO: make conditional?
|
||||
files += [ 'AlsaSoundStream.cpp' ]
|
||||
if acenv['HAVE_ALSA']:
|
||||
files += [ 'AlsaSoundStream.cpp' ]
|
||||
|
||||
acenv.StaticLibrary(env['local_libs'] + 'audiocommon', files)
|
||||
|
Reference in New Issue
Block a user