diff options
| author | ayuanx <ayuanx@gmail.com> | 2009-12-20 02:23:26 +0000 |
|---|---|---|
| committer | ayuanx <ayuanx@gmail.com> | 2009-12-20 02:23:26 +0000 |
| commit | 51163196d3e5faad9edaf9dc863ea7454b236a5d (patch) | |
| tree | 0beea5bbd44cb63876751d5a1c9534891ca41f86 /Source/Core/AudioCommon/Src/Mixer.cpp | |
| parent | 7b6a0f9b72950ef6752c8477e973666d476b5e51 (diff) | |
Now OpenAL works, at least.
But Dolphin's sound stream system really needs a rethink.
Because this is the root cause of constant blocking.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4711 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/AudioCommon/Src/Mixer.cpp')
| -rw-r--r-- | Source/Core/AudioCommon/Src/Mixer.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/Core/AudioCommon/Src/Mixer.cpp b/Source/Core/AudioCommon/Src/Mixer.cpp index 21c42e7fce..d120159e2c 100644 --- a/Source/Core/AudioCommon/Src/Mixer.cpp +++ b/Source/Core/AudioCommon/Src/Mixer.cpp @@ -171,3 +171,12 @@ void CMixer::PushSamples(short *samples, int num_stereo_samples, int core_sample } push_sync.Leave(); } + +int CMixer::GetNumSamples() +{ + return m_queueSize / 2; + //int ret = (m_queueSize - queue_minlength) / 2; + //ret = (ret > 0) ? ret : 0; + //return ret; +} + |
