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

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

Issue 1214463003: Split "Online" and "Offline" AudioContext processing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring to ToT Created 5 years, 5 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 15 matching lines...) Expand all
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef AudioScheduledSourceNode_h 29 #ifndef AudioScheduledSourceNode_h
30 #define AudioScheduledSourceNode_h 30 #define AudioScheduledSourceNode_h
31 31
32 #include "modules/webaudio/AudioSourceNode.h" 32 #include "modules/webaudio/AudioSourceNode.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 class AbstractAudioContext;
36 class AudioBus; 37 class AudioBus;
37 38
38 class AudioScheduledSourceHandler : public AudioHandler { 39 class AudioScheduledSourceHandler : public AudioHandler {
39 public: 40 public:
40 // These are the possible states an AudioScheduledSourceNode can be in: 41 // These are the possible states an AudioScheduledSourceNode can be in:
41 // 42 //
42 // UNSCHEDULED_STATE - Initial playback state. Created, but not yet schedule d. 43 // UNSCHEDULED_STATE - Initial playback state. Created, but not yet schedule d.
43 // SCHEDULED_STATE - Scheduled to play (via start()), but not yet playing. 44 // SCHEDULED_STATE - Scheduled to play (via start()), but not yet playing.
44 // PLAYING_STATE - Generating sound. 45 // PLAYING_STATE - Generating sound.
45 // FINISHED_STATE - Finished generating sound. 46 // FINISHED_STATE - Finished generating sound.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 public: 105 public:
105 void start(ExceptionState&); 106 void start(ExceptionState&);
106 void start(double when, ExceptionState&); 107 void start(double when, ExceptionState&);
107 void stop(ExceptionState&); 108 void stop(ExceptionState&);
108 void stop(double when, ExceptionState&); 109 void stop(double when, ExceptionState&);
109 110
110 EventListener* onended(); 111 EventListener* onended();
111 void setOnended(PassRefPtr<EventListener>); 112 void setOnended(PassRefPtr<EventListener>);
112 113
113 protected: 114 protected:
114 explicit AudioScheduledSourceNode(AudioContext&); 115 explicit AudioScheduledSourceNode(AbstractAudioContext&);
115 AudioScheduledSourceHandler& audioScheduledSourceHandler() const; 116 AudioScheduledSourceHandler& audioScheduledSourceHandler() const;
116 }; 117 };
117 118
118 } // namespace blink 119 } // namespace blink
119 120
120 #endif // AudioScheduledSourceNode_h 121 #endif // AudioScheduledSourceNode_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioParamTimeline.cpp ('k') | Source/modules/webaudio/AudioScheduledSourceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698