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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.h

Issue 1865583002: Implement BaseAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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
27 27
28 #include "modules/webaudio/AudioBuffer.h" 28 #include "modules/webaudio/AudioBuffer.h"
29 #include "modules/webaudio/AudioDestinationNode.h" 29 #include "modules/webaudio/AudioDestinationNode.h"
30 #include "modules/webaudio/OfflineAudioContext.h" 30 #include "modules/webaudio/OfflineAudioContext.h"
31 #include "public/platform/WebThread.h" 31 #include "public/platform/WebThread.h"
32 #include "wtf/PassRefPtr.h" 32 #include "wtf/PassRefPtr.h"
33 #include "wtf/RefPtr.h" 33 #include "wtf/RefPtr.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class AbstractAudioContext; 37 class BaseAudioContext;
38 class AudioBus; 38 class AudioBus;
39 class OfflineAudioContext; 39 class OfflineAudioContext;
40 40
41 class OfflineAudioDestinationHandler final : public AudioDestinationHandler { 41 class OfflineAudioDestinationHandler final : public AudioDestinationHandler {
42 public: 42 public:
43 static PassRefPtr<OfflineAudioDestinationHandler> create(AudioNode&, AudioBu ffer* renderTarget); 43 static PassRefPtr<OfflineAudioDestinationHandler> create(AudioNode&, AudioBu ffer* renderTarget);
44 ~OfflineAudioDestinationHandler() override; 44 ~OfflineAudioDestinationHandler() override;
45 45
46 // AudioHandler 46 // AudioHandler
47 void dispose() override; 47 void dispose() override;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // 'created' and 'suspended'. If this flag is false and the current state 108 // 'created' and 'suspended'. If this flag is false and the current state
109 // is 'suspended', it means the context is created and have not started yet. 109 // is 'suspended', it means the context is created and have not started yet.
110 bool m_isRenderingStarted; 110 bool m_isRenderingStarted;
111 111
112 // This flag indicates whether the rendering should be suspended or not. 112 // This flag indicates whether the rendering should be suspended or not.
113 bool m_shouldSuspend; 113 bool m_shouldSuspend;
114 }; 114 };
115 115
116 class OfflineAudioDestinationNode final : public AudioDestinationNode { 116 class OfflineAudioDestinationNode final : public AudioDestinationNode {
117 public: 117 public:
118 static OfflineAudioDestinationNode* create(AbstractAudioContext*, AudioBuffe r* renderTarget); 118 static OfflineAudioDestinationNode* create(BaseAudioContext*, AudioBuffer* r enderTarget);
119 119
120 private: 120 private:
121 OfflineAudioDestinationNode(AbstractAudioContext&, AudioBuffer* renderTarget ); 121 OfflineAudioDestinationNode(BaseAudioContext&, AudioBuffer* renderTarget);
122 }; 122 };
123 123
124 } // namespace blink 124 } // namespace blink
125 125
126 #endif // OfflineAudioDestinationNode_h 126 #endif // OfflineAudioDestinationNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698