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

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

Issue 1820403002: Implement Automations for PannerNode and AutioListener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 7 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) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 private: 291 private:
292 bool m_isCleared; 292 bool m_isCleared;
293 void clear(); 293 void clear();
294 294
295 void throwExceptionForClosedState(ExceptionState&); 295 void throwExceptionForClosedState(ExceptionState&);
296 296
297 // When the context goes away, there might still be some sources which 297 // When the context goes away, there might still be some sources which
298 // haven't finished playing. Make sure to release them here. 298 // haven't finished playing. Make sure to release them here.
299 void releaseActiveSourceNodes(); 299 void releaseActiveSourceNodes();
300 300
301 // Listener for the PannerNodes
301 Member<AudioListener> m_listener; 302 Member<AudioListener> m_listener;
302 303
303 // Only accessed in the audio thread. 304 // Only accessed in the audio thread.
304 // These raw pointers are safe because AudioSourceNodes in 305 // These raw pointers are safe because AudioSourceNodes in
305 // m_activeSourceNodes own them. 306 // m_activeSourceNodes own them.
306 Vector<AudioHandler*> m_finishedSourceHandlers; 307 Vector<AudioHandler*> m_finishedSourceHandlers;
307 308
308 // List of source nodes. This is either accessed when the graph lock is 309 // List of source nodes. This is either accessed when the graph lock is
309 // held, or on the main thread when the audio thread has finished. 310 // held, or on the main thread when the audio thread has finished.
310 // Oilpan: This Vector holds connection references. We must call 311 // Oilpan: This Vector holds connection references. We must call
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 Member<PeriodicWave> m_periodicWaveTriangle; 357 Member<PeriodicWave> m_periodicWaveTriangle;
357 358
358 // This is considering 32 is large enough for multiple channels audio. 359 // This is considering 32 is large enough for multiple channels audio.
359 // It is somewhat arbitrary and could be increased if necessary. 360 // It is somewhat arbitrary and could be increased if necessary.
360 enum { MaxNumberOfChannels = 32 }; 361 enum { MaxNumberOfChannels = 32 };
361 }; 362 };
362 363
363 } // namespace blink 364 } // namespace blink
364 365
365 #endif // AbstractAudioContext_h 366 #endif // AbstractAudioContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698