Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Side by Side Diff: media/audio/audio_util.h

Issue 6721015: Add WebKit API to retrieve the audio hardware sample-rate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_AUDIO_UTIL_H_ 5 #ifndef MEDIA_AUDIO_AUDIO_UTIL_H_
6 #define MEDIA_AUDIO_AUDIO_UTIL_H_ 6 #define MEDIA_AUDIO_AUDIO_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 memcpy(aac, b, sizeof(aac)); 84 memcpy(aac, b, sizeof(aac));
85 b[0] = aac[1]; // L 85 b[0] = aac[1]; // L
86 b[1] = aac[2]; // R 86 b[1] = aac[2]; // R
87 b[2] = aac[0]; // C 87 b[2] = aac[0]; // C
88 b[3] = aac[5]; // LFE 88 b[3] = aac[5]; // LFE
89 b[4] = aac[3]; // Ls 89 b[4] = aac[3]; // Ls
90 b[5] = aac[4]; // Rs 90 b[5] = aac[4]; // Rs
91 } 91 }
92 } 92 }
93 93
94 // Returns the default audio hardware sample-rate.
95 double GetAudioHardwareSampleRate();
96
94 } // namespace media 97 } // namespace media
95 98
96 #endif // MEDIA_AUDIO_AUDIO_UTIL_H_ 99 #endif // MEDIA_AUDIO_AUDIO_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698