diff options
author | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-14 23:16:00 +0000 |
---|---|---|
committer | sergeyu@chromium.org <sergeyu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-14 23:16:00 +0000 |
commit | 01c41dc19a7706176785b426dccf97f4e24e7270 (patch) | |
tree | 804bf8e62563b94a435e6b5098855c604561339b /media/audio/linux/alsa_wrapper.h | |
parent | 2e03945a0cb0d34b784e985af3fc05f6ad59ceff (diff) | |
download | chromium_src-01c41dc19a7706176785b426dccf97f4e24e7270.zip chromium_src-01c41dc19a7706176785b426dccf97f4e24e7270.tar.gz chromium_src-01c41dc19a7706176785b426dccf97f4e24e7270.tar.bz2 |
Removed AlsaPcmOutputStrem::Packet. Fixed bug in AlsaPcmOutputStream::ScheduleNextWrite which would cause high CPU consumption.
BUG=28654
TEST=Audio still works on Linux
Review URL: http://codereview.chromium.org/2008010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47333 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/audio/linux/alsa_wrapper.h')
-rw-r--r-- | media/audio/linux/alsa_wrapper.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/media/audio/linux/alsa_wrapper.h b/media/audio/linux/alsa_wrapper.h index ce045ea..4469687 100644 --- a/media/audio/linux/alsa_wrapper.h +++ b/media/audio/linux/alsa_wrapper.h @@ -33,6 +33,8 @@ class AlsaWrapper { snd_pcm_access_t access, unsigned int channels, unsigned int rate, int soft_resample, unsigned int latency); + virtual int PcmGetParams(snd_pcm_t* handle, snd_pcm_uframes_t* buffer_size, + snd_pcm_uframes_t* period_size); virtual const char* PcmName(snd_pcm_t* handle); virtual snd_pcm_sframes_t PcmAvailUpdate(snd_pcm_t* handle); virtual snd_pcm_state_t PcmState(snd_pcm_t* handle); |