mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-14 07:36:26 +00:00
Add 5ms callback registration for precise audio updates
This commit is contained in:
@@ -153,11 +153,13 @@ struct ALSAAudioVoiceEngine : BaseAudioVoiceEngine
|
||||
{
|
||||
bestRate = 96000;
|
||||
m_mixInfo.m_sampleRate = 96000.0;
|
||||
m_5msFrames = 96000 * 5 / 1000;
|
||||
}
|
||||
else if (!snd_pcm_hw_params_test_rate(m_pcm, hwParams, 48000, 0))
|
||||
{
|
||||
bestRate = 48000;
|
||||
m_mixInfo.m_sampleRate = 48000.0;
|
||||
m_5msFrames = 48000 * 5 / 1000;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user