diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-24 22:30:07 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-24 22:30:07 +0000 |
commit | 9d3381548a57745b672e65fa4b487c61b0b7bf39 (patch) | |
tree | d12a7e03ca70bbce7a3a372e5969719e496e0193 /media/audio/linux/alsa_wrapper.h | |
parent | 4748f54e887fc85f009e8d1df2288f7f3f984d0e (diff) | |
download | chromium_src-9d3381548a57745b672e65fa4b487c61b0b7bf39.zip chromium_src-9d3381548a57745b672e65fa4b487c61b0b7bf39.tar.gz chromium_src-9d3381548a57745b672e65fa4b487c61b0b7bf39.tar.bz2 |
Provide unplayed bytes ALSA implementation of audio
BUG=19921
TEST=play an video track on linux, AV should be in sync.
Use snd_pcm_delay() to provide the number of unplayed bytes in linux's
audio implementation. This information will correct the sync problem
for linux.
Review URL: http://codereview.chromium.org/173288
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24163 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/linux/alsa_wrapper.h')
-rw-r--r-- | media/audio/linux/alsa_wrapper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/audio/linux/alsa_wrapper.h b/media/audio/linux/alsa_wrapper.h index a3dafbb..d7686dd 100644 --- a/media/audio/linux/alsa_wrapper.h +++ b/media/audio/linux/alsa_wrapper.h @@ -20,6 +20,7 @@ class AlsaWrapper { virtual int PcmClose(snd_pcm_t* handle); virtual int PcmPrepare(snd_pcm_t* handle); virtual int PcmDrop(snd_pcm_t* handle); + virtual int PcmDelay(snd_pcm_t* handle, snd_pcm_sframes_t* delay); virtual snd_pcm_sframes_t PcmWritei(snd_pcm_t* handle, const void* buffer, snd_pcm_uframes_t size); |