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/audio_int.h | |
parent | 3fd7f635cdd5ee13f08c6ba1b0974a17eb9c9347 (diff) | |
download | qemu-bdff253c8fb4c8a64bb4792cc161dd79ab4aaf65.zip qemu-bdff253c8fb4c8a64bb4792cc161dd79ab4aaf65.tar.gz qemu-bdff253c8fb4c8a64bb4792cc161dd79ab4aaf65.tar.bz2 |
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/audio_int.h')
-rw-r--r-- | audio/audio_int.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/audio/audio_int.h b/audio/audio_int.h index 7ea8729..4acc8d5 100644 --- a/audio/audio_int.h +++ b/audio/audio_int.h @@ -155,7 +155,7 @@ struct audio_driver { struct audio_pcm_ops { int (*init_out)(HWVoiceOut *hw, struct audsettings *as); void (*fini_out)(HWVoiceOut *hw); - int (*run_out) (HWVoiceOut *hw); + int (*run_out) (HWVoiceOut *hw, int live); int (*write) (SWVoiceOut *sw, void *buf, int size); int (*ctl_out) (HWVoiceOut *hw, int cmd, ...); @@ -218,8 +218,6 @@ int audio_pcm_sw_write (SWVoiceOut *sw, void *buf, int len); int audio_pcm_hw_get_live_in (HWVoiceIn *hw); int audio_pcm_sw_read (SWVoiceIn *sw, void *buf, int len); -int audio_pcm_hw_get_live_out (HWVoiceOut *hw); -int audio_pcm_hw_get_live_out2 (HWVoiceOut *hw, int *nb_live); int audio_pcm_hw_clip_out (HWVoiceOut *hw, void *pcm_buf, int live, int pending); |