| 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 17 matching lines...) Expand all Loading... |
| 28 #if ENABLE(WEB_AUDIO) | 28 #if ENABLE(WEB_AUDIO) |
| 29 | 29 |
| 30 #include "platform/audio/AudioSourceProvider.h" | 30 #include "platform/audio/AudioSourceProvider.h" |
| 31 #include "platform/audio/AudioSourceProviderClient.h" | 31 #include "platform/audio/AudioSourceProviderClient.h" |
| 32 #include "modules/mediastream/MediaStream.h" | 32 #include "modules/mediastream/MediaStream.h" |
| 33 #include "modules/webaudio/AudioSourceNode.h" | 33 #include "modules/webaudio/AudioSourceNode.h" |
| 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 blink { |
| 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 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaStreamAudioSourceNode); | 43 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MediaStreamAudioSourceNode); |
| 44 public: | 44 public: |
| 45 static PassRefPtrWillBeRawPtr<MediaStreamAudioSourceNode> create(AudioContex
t*, MediaStream*, MediaStreamTrack*, PassOwnPtr<AudioSourceProvider>); | 45 static PassRefPtrWillBeRawPtr<MediaStreamAudioSourceNode> create(AudioContex
t*, MediaStream*, MediaStreamTrack*, PassOwnPtr<AudioSourceProvider>); |
| 46 | 46 |
| 47 virtual ~MediaStreamAudioSourceNode(); | 47 virtual ~MediaStreamAudioSourceNode(); |
| 48 | 48 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 66 | 66 |
| 67 PersistentWillBeMember<MediaStream> m_mediaStream; | 67 PersistentWillBeMember<MediaStream> m_mediaStream; |
| 68 PersistentWillBeMember<MediaStreamTrack> m_audioTrack; | 68 PersistentWillBeMember<MediaStreamTrack> m_audioTrack; |
| 69 OwnPtr<AudioSourceProvider> m_audioSourceProvider; | 69 OwnPtr<AudioSourceProvider> m_audioSourceProvider; |
| 70 | 70 |
| 71 Mutex m_processLock; | 71 Mutex m_processLock; |
| 72 | 72 |
| 73 unsigned m_sourceNumberOfChannels; | 73 unsigned m_sourceNumberOfChannels; |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace WebCore | 76 } // namespace blink |
| 77 | 77 |
| 78 #endif // ENABLE(WEB_AUDIO) | 78 #endif // ENABLE(WEB_AUDIO) |
| 79 | 79 |
| 80 #endif // MediaStreamAudioSourceNode_h | 80 #endif // MediaStreamAudioSourceNode_h |
| OLD | NEW |