Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1337)

Side by Side Diff: Source/modules/webaudio/MediaStreamAudioSourceNode.h

Issue 205173002: Move webaudio to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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;
55 55
56 AudioSourceProvider* audioSourceProvider() const { return m_audioSourceProvi der.get(); } 56 AudioSourceProvider* audioSourceProvider() const { return m_audioSourceProvi der.get(); }
57 57
58 private: 58 private:
59 MediaStreamAudioSourceNode(AudioContext*, MediaStream*, MediaStreamTrack*, P assOwnPtr<AudioSourceProvider>); 59 MediaStreamAudioSourceNode(AudioContext*, MediaStream*, MediaStreamTrack*, P assOwnPtr<AudioSourceProvider>);
60 60
61 // As an audio source, we will never propagate silence. 61 // As an audio source, we will never propagate silence.
62 virtual bool propagatesSilence() const OVERRIDE { return false; } 62 virtual bool propagatesSilence() const OVERRIDE { return false; }
63 63
64 RefPtr<MediaStream> m_mediaStream; 64 RefPtr<MediaStream> m_mediaStream;
haraken 2014/04/08 06:02:08 Ditto.
65 RefPtr<MediaStreamTrack> m_audioTrack; 65 RefPtr<MediaStreamTrack> m_audioTrack;
66 OwnPtr<AudioSourceProvider> m_audioSourceProvider; 66 OwnPtr<AudioSourceProvider> m_audioSourceProvider;
67 67
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698