| 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 "modules/webaudio/AudioBuffer.h" | 28 #include "modules/webaudio/AudioBuffer.h" |
| 29 #include "modules/webaudio/AudioNode.h" | 29 #include "modules/webaudio/AudioNode.h" |
| 30 #include "platform/audio/AudioBus.h" | 30 #include "platform/audio/AudioBus.h" |
| 31 #include "platform/audio/AudioIOCallback.h" | 31 #include "platform/audio/AudioIOCallback.h" |
| 32 #include "platform/audio/AudioSourceProvider.h" | 32 #include "platform/audio/AudioSourceProvider.h" |
| 33 | 33 |
| 34 #if ENABLE(WEB_AUDIO) | |
| 35 | |
| 36 namespace blink { | 34 namespace blink { |
| 37 | 35 |
| 38 class AudioBus; | 36 class AudioBus; |
| 39 class AbstractAudioContext; | 37 class AbstractAudioContext; |
| 40 | 38 |
| 41 class AudioDestinationHandler : public AudioHandler, public AudioIOCallback { | 39 class AudioDestinationHandler : public AudioHandler, public AudioIOCallback { |
| 42 public: | 40 public: |
| 43 AudioDestinationHandler(AudioNode&, float sampleRate); | 41 AudioDestinationHandler(AudioNode&, float sampleRate); |
| 44 ~AudioDestinationHandler() override; | 42 ~AudioDestinationHandler() override; |
| 45 | 43 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 AudioDestinationHandler& audioDestinationHandler() const; | 97 AudioDestinationHandler& audioDestinationHandler() const; |
| 100 | 98 |
| 101 unsigned long maxChannelCount() const; | 99 unsigned long maxChannelCount() const; |
| 102 | 100 |
| 103 protected: | 101 protected: |
| 104 AudioDestinationNode(AbstractAudioContext&); | 102 AudioDestinationNode(AbstractAudioContext&); |
| 105 }; | 103 }; |
| 106 | 104 |
| 107 } // namespace blink | 105 } // namespace blink |
| 108 | 106 |
| 109 #endif // ENABLE(WEB_AUDIO) | |
| 110 | |
| 111 #endif // AudioDestinationNode_h | 107 #endif // AudioDestinationNode_h |
| OLD | NEW |