Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/sanear.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Marsev <alex.marsev@gmail.com>2016-01-26 13:44:30 +0300
committerAlex Marsev <alex.marsev@gmail.com>2016-01-27 09:11:51 +0300
commit817ef3517ede551872dd4748f05c7c3958c933f4 (patch)
treee345d885b6c85e7701607852ebaa7d97c26e4a62
parentb26a63867524534e2a5c9d8c62586111871b0a12 (diff)
Remove "realtime" property from AudioDevice class
-rw-r--r--src/AudioDevice.h1
-rw-r--r--src/AudioRenderer.cpp6
2 files changed, 3 insertions, 4 deletions
diff --git a/src/AudioDevice.h b/src/AudioDevice.h
index 43e8543..f0a565b 100644
--- a/src/AudioDevice.h
+++ b/src/AudioDevice.h
@@ -60,7 +60,6 @@ namespace SaneAudioRenderer
REFERENCE_TIME GetStreamLatency() const { return m_backend->latency; }
bool IsExclusive() const { return m_backend->exclusive; }
- bool IsRealtime() const { return m_backend->realtime; }
bool IgnoredSystemChannelMixer() const { return m_backend->ignoredSystemChannelMixer; }
diff --git a/src/AudioRenderer.cpp b/src/AudioRenderer.cpp
index 2c24fdd..f6db707 100644
--- a/src/AudioRenderer.cpp
+++ b/src/AudioRenderer.cpp
@@ -103,7 +103,7 @@ namespace SaneAudioRenderer
if (m_device && !IsBitstreaming() && m_state == State_Running)
{
- if (m_device->IsRealtime())
+ if (m_live || m_externalClock)
{
// Apply rate corrections (rate matching and clock slaving).
ApplyRateCorrection(chunk);
@@ -580,7 +580,7 @@ namespace SaneAudioRenderer
CAutoLock objectLock(this);
assert(m_device);
assert(!IsBitstreaming());
- assert(m_device->IsRealtime());
+ assert(m_live || m_externalClock);
assert(m_state == State_Running);
if (chunk.IsEmpty())
@@ -752,7 +752,7 @@ namespace SaneAudioRenderer
try
{
m_device->Push(chunk, pFilledEvent);
- sleepDuration = (m_device->IsRealtime() ? 50 : m_device->GetBufferDuration() / 4);
+ sleepDuration = m_device->GetBufferDuration() / 4;
}
catch (HRESULT)
{