diff options
author | malc <av1474@comtv.ru> | 2009-09-18 11:37:39 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-09-18 14:04:36 +0400 |
commit | bdff253c8fb4c8a64bb4792cc161dd79ab4aaf65 (patch) | |
tree | 8e12d54b246e2787a7b1bd3b0e50d236910a05a0 /audio/esdaudio.c | |
parent | 3fd7f635cdd5ee13f08c6ba1b0974a17eb9c9347 (diff) |
audio: internal API change
pcm_ops.run_out now takes number of live samples (which will be always
greater than zero) as a second argument, every driver was calling
audio_pcm_hw_get_live_out anyway with exception of fmod which used
audio_pcm_hw_get_live_out2 for no good reason.
Signed-off-by: malc <av1474@comtv.ru>
Diffstat (limited to 'audio/esdaudio.c')
-rw-r--r-- | audio/esdaudio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/audio/esdaudio.c b/audio/esdaudio.c index 90a8a7a689..79142d1706 100644 --- a/audio/esdaudio.c +++ b/audio/esdaudio.c @@ -158,16 +158,15 @@ static void *qesd_thread_out (void *arg) return NULL; } -static int qesd_run_out (HWVoiceOut *hw) +static int qesd_run_out (HWVoiceOut *hw, int live) { - int live, decr; + int decr; ESDVoiceOut *esd = (ESDVoiceOut *) hw; if (audio_pt_lock (&esd->pt, AUDIO_FUNC)) { return 0; } - live = audio_pcm_hw_get_live_out (hw); decr = audio_MIN (live, esd->decr); esd->decr -= decr; esd->live = live - decr; |