| 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 "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 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class AudioBus; | 36 class AudioBus; |
| 37 class AudioContext; | 37 class AbstractAudioContext; |
| 38 | 38 |
| 39 class AudioDestinationHandler : public AudioHandler, public AudioIOCallback { | 39 class AudioDestinationHandler : public AudioHandler, public AudioIOCallback { |
| 40 public: | 40 public: |
| 41 AudioDestinationHandler(AudioNode&, float sampleRate); | 41 AudioDestinationHandler(AudioNode&, float sampleRate); |
| 42 ~AudioDestinationHandler() override; | 42 ~AudioDestinationHandler() override; |
| 43 | 43 |
| 44 // AudioHandler | 44 // AudioHandler |
| 45 void process(size_t) final { } // we're pulled by hardware so this is never
called | 45 void process(size_t) final { } // we're pulled by hardware so this is never
called |
| 46 | 46 |
| 47 // The audio hardware calls render() to get the next render quantum of audio
into destinationBus. | 47 // The audio hardware calls render() to get the next render quantum of audio
into destinationBus. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 class AudioDestinationNode : public AudioNode { | 94 class AudioDestinationNode : public AudioNode { |
| 95 DEFINE_WRAPPERTYPEINFO(); | 95 DEFINE_WRAPPERTYPEINFO(); |
| 96 public: | 96 public: |
| 97 AudioDestinationHandler& audioDestinationHandler() const; | 97 AudioDestinationHandler& audioDestinationHandler() const; |
| 98 | 98 |
| 99 unsigned long maxChannelCount() const; | 99 unsigned long maxChannelCount() const; |
| 100 | 100 |
| 101 protected: | 101 protected: |
| 102 AudioDestinationNode(AudioContext&); | 102 AudioDestinationNode(AbstractAudioContext&); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace blink | 105 } // namespace blink |
| 106 | 106 |
| 107 #endif // AudioDestinationNode_h | 107 #endif // AudioDestinationNode_h |
| OLD | NEW |