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

Side by Side Diff: Source/platform/audio/AudioChannel.h

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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
« no previous file with comments | « Source/platform/audio/AudioBus.cpp ('k') | Source/platform/audio/AudioChannel.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 15 matching lines...) Expand all
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef AudioChannel_h 29 #ifndef AudioChannel_h
30 #define AudioChannel_h 30 #define AudioChannel_h
31 31
32 #include "platform/PlatformExport.h" 32 #include "platform/PlatformExport.h"
33 #include "platform/audio/AudioArray.h" 33 #include "platform/audio/AudioArray.h"
34 #include "wtf/PassOwnPtr.h" 34 #include "wtf/PassOwnPtr.h"
35 35
36 namespace WebCore { 36 namespace blink {
37 37
38 // An AudioChannel represents a buffer of non-interleaved floating-point audio s amples. 38 // An AudioChannel represents a buffer of non-interleaved floating-point audio s amples.
39 // The PCM samples are normally assumed to be in a nominal range -1.0 -> +1.0 39 // The PCM samples are normally assumed to be in a nominal range -1.0 -> +1.0
40 class PLATFORM_EXPORT AudioChannel { 40 class PLATFORM_EXPORT AudioChannel {
41 WTF_MAKE_NONCOPYABLE(AudioChannel); 41 WTF_MAKE_NONCOPYABLE(AudioChannel);
42 public: 42 public:
43 // Memory can be externally referenced, or can be internally allocated with an AudioFloatArray. 43 // Memory can be externally referenced, or can be internally allocated with an AudioFloatArray.
44 44
45 // Reference an external buffer. 45 // Reference an external buffer.
46 AudioChannel(float* storage, size_t length) 46 AudioChannel(float* storage, size_t length)
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 size_t m_length; 131 size_t m_length;
132 132
133 float* m_rawPointer; 133 float* m_rawPointer;
134 OwnPtr<AudioFloatArray> m_memBuffer; 134 OwnPtr<AudioFloatArray> m_memBuffer;
135 bool m_silent; 135 bool m_silent;
136 }; 136 };
137 137
138 } // WebCore 138 } // WebCore
139 139
140 #endif // AudioChannel_h 140 #endif // AudioChannel_h
OLDNEW
« no previous file with comments | « Source/platform/audio/AudioBus.cpp ('k') | Source/platform/audio/AudioChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698