| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012, Google Inc. All rights reserved. | 2 * Copyright (C) 2012, 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 Mutex m_processLock; | 67 Mutex m_processLock; |
| 68 | 68 |
| 69 unsigned m_sourceNumberOfChannels; | 69 unsigned m_sourceNumberOfChannels; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 class MediaStreamAudioSourceNode final : public AudioSourceNode, public AudioSou
rceProviderClient { | 72 class MediaStreamAudioSourceNode final : public AudioSourceNode, public AudioSou
rceProviderClient { |
| 73 DEFINE_WRAPPERTYPEINFO(); | 73 DEFINE_WRAPPERTYPEINFO(); |
| 74 USING_GARBAGE_COLLECTED_MIXIN(MediaStreamAudioSourceNode); | 74 USING_GARBAGE_COLLECTED_MIXIN(MediaStreamAudioSourceNode); |
| 75 public: | 75 public: |
| 76 static MediaStreamAudioSourceNode* create(AbstractAudioContext&, MediaStream
&, MediaStreamTrack*, PassOwnPtr<AudioSourceProvider>); | 76 static MediaStreamAudioSourceNode* create(AbstractAudioContext&, MediaStream
&, ExceptionState&); |
| 77 DECLARE_VIRTUAL_TRACE(); | 77 DECLARE_VIRTUAL_TRACE(); |
| 78 MediaStreamAudioSourceHandler& mediaStreamAudioSourceHandler() const; | 78 MediaStreamAudioSourceHandler& mediaStreamAudioSourceHandler() const; |
| 79 | 79 |
| 80 MediaStream* getMediaStream() const; | 80 MediaStream* getMediaStream() const; |
| 81 | 81 |
| 82 // AudioSourceProviderClient functions: | 82 // AudioSourceProviderClient functions: |
| 83 void setFormat(size_t numberOfChannels, float sampleRate) override; | 83 void setFormat(size_t numberOfChannels, float sampleRate) override; |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 MediaStreamAudioSourceNode(AbstractAudioContext&, MediaStream&, MediaStreamT
rack*, PassOwnPtr<AudioSourceProvider>); | 86 MediaStreamAudioSourceNode(AbstractAudioContext&, MediaStream&, MediaStreamT
rack*, PassOwnPtr<AudioSourceProvider>); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 } // namespace blink | 89 } // namespace blink |
| 90 | 90 |
| 91 #endif // MediaStreamAudioSourceNode_h | 91 #endif // MediaStreamAudioSourceNode_h |
| OLD | NEW |