diff options
| author | malc | 2009-09-18 09:37:39 +0200 |
|---|---|---|
| committer | malc | 2009-09-18 12:04:36 +0200 |
| commit | bdff253c8fb4c8a64bb4792cc161dd79ab4aaf65 (patch) | |
| tree | 8e12d54b246e2787a7b1bd3b0e50d236910a05a0 /audio/noaudio.c | |
| parent | sdlaudio: use correct function names in sdl_XXX calls (diff) | |
| download | qemu-bdff253c8fb4c8a64bb4792cc161dd79ab4aaf65.tar.gz qemu-bdff253c8fb4c8a64bb4792cc161dd79ab4aaf65.tar.xz qemu-bdff253c8fb4c8a64bb4792cc161dd79ab4aaf65.zip | |
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/noaudio.c')
| -rw-r--r-- | audio/noaudio.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/audio/noaudio.c b/audio/noaudio.c index 82272b7199..4925234c07 100644 --- a/audio/noaudio.c +++ b/audio/noaudio.c @@ -38,19 +38,14 @@ typedef struct NoVoiceIn { int64_t old_ticks; } NoVoiceIn; -static int no_run_out (HWVoiceOut *hw) +static int no_run_out (HWVoiceOut *hw, int live) { NoVoiceOut *no = (NoVoiceOut *) hw; - int live, decr, samples; + int decr, samples; int64_t now; int64_t ticks; int64_t bytes; - live = audio_pcm_hw_get_live_out (&no->hw); - if (!live) { - return 0; - } - now = qemu_get_clock (vm_clock); ticks = now - no->old_ticks; bytes = muldiv64 (ticks, hw->info.bytes_per_second, get_ticks_per_sec ()); |
