OLD | NEW |
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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #include "WebCommon.h" | 28 #include "WebCommon.h" |
29 | 29 |
30 #if INSIDE_BLINK | 30 #if INSIDE_BLINK |
31 namespace WTF { template <typename T> class PassRefPtr; } | 31 namespace WTF { template <typename T> class PassRefPtr; } |
32 #endif | 32 #endif |
33 | 33 |
34 namespace blink { | 34 namespace blink { |
35 | 35 |
36 class AudioBus; | 36 class AudioBus; |
37 class WebAudioBusPrivate; | |
38 | 37 |
39 // A container for multi-channel linear PCM audio data. | 38 // A container for multi-channel linear PCM audio data. |
40 // | 39 // |
41 // WARNING: It is not safe to pass a WebAudioBus across threads!!! | 40 // WARNING: It is not safe to pass a WebAudioBus across threads!!! |
42 // | 41 // |
43 class BLINK_PLATFORM_EXPORT WebAudioBus { | 42 class BLINK_PLATFORM_EXPORT WebAudioBus { |
44 public: | 43 public: |
45 WebAudioBus() : m_private(0) { } | 44 WebAudioBus() : m_private(0) { } |
46 ~WebAudioBus() { reset(); } | 45 ~WebAudioBus() { reset(); } |
47 | 46 |
(...skipping 21 matching lines...) Expand all Loading... |
69 // Disallow copy and assign. | 68 // Disallow copy and assign. |
70 WebAudioBus(const WebAudioBus&); | 69 WebAudioBus(const WebAudioBus&); |
71 void operator=(const WebAudioBus&); | 70 void operator=(const WebAudioBus&); |
72 | 71 |
73 AudioBus* m_private; | 72 AudioBus* m_private; |
74 }; | 73 }; |
75 | 74 |
76 } // namespace blink | 75 } // namespace blink |
77 | 76 |
78 #endif // WebAudioBus_h | 77 #endif // WebAudioBus_h |
OLD | NEW |