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 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #ifndef AudioDestinationNode_h | 25 #ifndef AudioDestinationNode_h |
26 #define AudioDestinationNode_h | 26 #define AudioDestinationNode_h |
27 | 27 |
28 #include "platform/audio/AudioBus.h" | 28 #include "platform/audio/AudioBus.h" |
29 #include "platform/audio/AudioIOCallback.h" | 29 #include "platform/audio/AudioIOCallback.h" |
30 #include "platform/audio/AudioSourceProvider.h" | 30 #include "platform/audio/AudioSourceProvider.h" |
31 #include "modules/webaudio/AudioBuffer.h" | 31 #include "modules/webaudio/AudioBuffer.h" |
32 #include "modules/webaudio/AudioNode.h" | 32 #include "modules/webaudio/AudioNode.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace blink { |
35 | 35 |
36 class AudioBus; | 36 class AudioBus; |
37 class AudioContext; | 37 class AudioContext; |
38 | 38 |
39 class AudioDestinationNode : public AudioNode, public AudioIOCallback { | 39 class AudioDestinationNode : public AudioNode, public AudioIOCallback { |
40 public: | 40 public: |
41 AudioDestinationNode(AudioContext*, float sampleRate); | 41 AudioDestinationNode(AudioContext*, float sampleRate); |
42 virtual ~AudioDestinationNode(); | 42 virtual ~AudioDestinationNode(); |
43 | 43 |
44 // AudioNode | 44 // AudioNode |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 virtual double tailTime() const OVERRIDE FINAL { return 0; } | 87 virtual double tailTime() const OVERRIDE FINAL { return 0; } |
88 virtual double latencyTime() const OVERRIDE FINAL { return 0; } | 88 virtual double latencyTime() const OVERRIDE FINAL { return 0; } |
89 | 89 |
90 // Counts the number of sample-frames processed by the destination. | 90 // Counts the number of sample-frames processed by the destination. |
91 size_t m_currentSampleFrame; | 91 size_t m_currentSampleFrame; |
92 | 92 |
93 LocalAudioInputProvider m_localAudioInputProvider; | 93 LocalAudioInputProvider m_localAudioInputProvider; |
94 }; | 94 }; |
95 | 95 |
96 } // namespace WebCore | 96 } // namespace blink |
97 | 97 |
98 #endif // AudioDestinationNode_h | 98 #endif // AudioDestinationNode_h |
OLD | NEW |