| 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 23 matching lines...) Expand all Loading... |
| 34 #include "wtf/OwnPtr.h" | 34 #include "wtf/OwnPtr.h" |
| 35 #include "wtf/PassRefPtr.h" | 35 #include "wtf/PassRefPtr.h" |
| 36 #include "wtf/Threading.h" | 36 #include "wtf/Threading.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 class AudioContext; | 40 class AudioContext; |
| 41 | 41 |
| 42 class MediaStreamAudioSourceNode FINAL : public AudioSourceNode, public AudioSou
rceProviderClient { | 42 class MediaStreamAudioSourceNode FINAL : public AudioSourceNode, public AudioSou
rceProviderClient { |
| 43 public: | 43 public: |
| 44 static PassRefPtr<MediaStreamAudioSourceNode> create(AudioContext*, MediaStr
eam*, MediaStreamTrack*, PassOwnPtr<AudioSourceProvider>); | 44 static PassRefPtrWillBeRawPtr<MediaStreamAudioSourceNode> create(AudioContex
t*, MediaStream*, MediaStreamTrack*, PassOwnPtr<AudioSourceProvider>); |
| 45 | 45 |
| 46 virtual ~MediaStreamAudioSourceNode(); | 46 virtual ~MediaStreamAudioSourceNode(); |
| 47 | 47 |
| 48 MediaStream* mediaStream() { return m_mediaStream.get(); } | 48 MediaStream* mediaStream() { return m_mediaStream.get(); } |
| 49 | 49 |
| 50 // AudioNode | 50 // AudioNode |
| 51 virtual void process(size_t framesToProcess) OVERRIDE; | 51 virtual void process(size_t framesToProcess) OVERRIDE; |
| 52 | 52 |
| 53 // AudioSourceProviderClient | 53 // AudioSourceProviderClient |
| 54 virtual void setFormat(size_t numberOfChannels, float sampleRate) OVERRIDE; | 54 virtual void setFormat(size_t numberOfChannels, float sampleRate) OVERRIDE; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 68 Mutex m_processLock; | 68 Mutex m_processLock; |
| 69 | 69 |
| 70 unsigned m_sourceNumberOfChannels; | 70 unsigned m_sourceNumberOfChannels; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace WebCore | 73 } // namespace WebCore |
| 74 | 74 |
| 75 #endif // ENABLE(WEB_AUDIO) | 75 #endif // ENABLE(WEB_AUDIO) |
| 76 | 76 |
| 77 #endif // MediaStreamAudioSourceNode_h | 77 #endif // MediaStreamAudioSourceNode_h |
| OLD | NEW |