forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scale audio delay information in AudioRendererMixer.
Converts the audio delay information into the scale expected by the underlying audio renderer mixer input. Similar to what is already done in AudioOutputResampler. bytes_per_ms = channels * bytes_per_channel * frames_per_second / 1000; bytes_per_buffer = channels * bytes_per_channel * frames_per_buffer; delay_ms = bytes_per_buffer / bytes_per_ms ... delay_ms = frames_per_buffer * 1000 / frames_per_second Which means we just want to include the sample rate in the scaling. BUG=133637 TEST=playback is in sync, tests work fine. Review URL: https://chromiumcodereview.appspot.com/11231031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163435 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
dalecurtis@chromium.org
committed
Oct 22, 2012
1 parent
86c6531
commit 3167a14
Showing
5 changed files
with
51 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters