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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 24 matching lines...) Expand all Loading... |
35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class AudioBus; | 39 class AudioBus; |
40 | 40 |
41 // AudioProcessor is an abstract base class representing an audio signal process
ing object with a single input and a single output, | 41 // AudioProcessor is an abstract base class representing an audio signal process
ing object with a single input and a single output, |
42 // where the number of input channels equals the number of output channels. It
can be used as one part of a complex DSP algorithm, | 42 // where the number of input channels equals the number of output channels. It
can be used as one part of a complex DSP algorithm, |
43 // or as the processor for a basic (one input - one output) AudioNode. | 43 // or as the processor for a basic (one input - one output) AudioNode. |
44 | 44 |
45 class PLATFORM_EXPORT AudioProcessor : public NoBaseWillBeGarbageCollectedFinali
zed<AudioProcessor> { | 45 class PLATFORM_EXPORT AudioProcessor : public GarbageCollectedFinalized<AudioPro
cessor> { |
46 public: | 46 public: |
47 AudioProcessor(float sampleRate, unsigned numberOfChannels) | 47 AudioProcessor(float sampleRate, unsigned numberOfChannels) |
48 : m_initialized(false) | 48 : m_initialized(false) |
49 , m_numberOfChannels(numberOfChannels) | 49 , m_numberOfChannels(numberOfChannels) |
50 , m_sampleRate(sampleRate) | 50 , m_sampleRate(sampleRate) |
51 { | 51 { |
52 } | 52 } |
53 | 53 |
54 virtual ~AudioProcessor(); | 54 virtual ~AudioProcessor(); |
55 virtual void trace(Visitor*); | 55 virtual void trace(Visitor*); |
(...skipping 20 matching lines...) Expand all Loading... |
76 | 76 |
77 protected: | 77 protected: |
78 bool m_initialized; | 78 bool m_initialized; |
79 unsigned m_numberOfChannels; | 79 unsigned m_numberOfChannels; |
80 float m_sampleRate; | 80 float m_sampleRate; |
81 }; | 81 }; |
82 | 82 |
83 } // namespace blink | 83 } // namespace blink |
84 | 84 |
85 #endif // AudioProcessor_h | 85 #endif // AudioProcessor_h |
OLD | NEW |