Skip to contentSkip to conversation

audio: reset timer when enabling capture mode

PATCH In review Michael Walle 2 participants 3 messages Dec 8, 2010 – Dec 9, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 audio: reset timer when enabling capture mode

The audio timer also has to be reset when a capture device is enabled. This will ensure the timer to be started even if just capture devices are active.

---
 audio/audio.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
audio/audio.c +1 -0
index ade342e..1edbb29 100644
@@ -1240,6 +1240,7 @@ void AUD_set_active_in (SWVoiceIn *sw, int on)
                 hw->enabled = 1;
                 if (s->vm_running) {
                     hw->pcm_ops->ctl_in (hw, VOICE_ENABLE, conf.try_poll_in);
+                    audio_reset_timer ();
                 }
             }
             sw->total_hw_samples_acquired = hw->total_samples_captured;
Signature · 1 line
1.7.2.3
#1 lore raw
Quoted 3 lines · Michael Walle

The audio timer also has to be reset when a capture device is enabled. This will ensure the timer to be started even if just capture devices are active.

It was done in 39deb1e496de81957167daebf5cf5d1fbd5e47c2

Signature · 1 line
mailto:[email protected]
#2 lore raw

Am Donnerstag 09 Dezember 2010, 19:50:52 schrieben Sie:

Quoted 6 lines · Michael Walle
Quoted 3 lines

The audio timer also has to be reset when a capture device is enabled. This will ensure the timer to be started even if just capture devices are active.

It was done in 39deb1e496de81957167daebf5cf5d1fbd5e47c2

whoops sorry

Signature · 1 line
wkr michael