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

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: Rebase UseCounter.h 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 private: 284 private:
285 bool m_isCleared; 285 bool m_isCleared;
286 void clear(); 286 void clear();
287 287
288 void throwExceptionForClosedState(ExceptionState&); 288 void throwExceptionForClosedState(ExceptionState&);
289 289
290 // When the context goes away, there might still be some sources which 290 // When the context goes away, there might still be some sources which
291 // haven't finished playing. Make sure to release them here. 291 // haven't finished playing. Make sure to release them here.
292 void releaseActiveSourceNodes(); 292 void releaseActiveSourceNodes();
293 293
294 // Listener for the PannerNodes
294 Member<AudioListener> m_listener; 295 Member<AudioListener> m_listener;
295 296
296 // Only accessed in the audio thread. 297 // Only accessed in the audio thread.
297 // These raw pointers are safe because AudioSourceNodes in 298 // These raw pointers are safe because AudioSourceNodes in
298 // m_activeSourceNodes own them. 299 // m_activeSourceNodes own them.
299 Vector<AudioHandler*> m_finishedSourceHandlers; 300 Vector<AudioHandler*> m_finishedSourceHandlers;
300 301
301 // List of source nodes. This is either accessed when the graph lock is 302 // List of source nodes. This is either accessed when the graph lock is
302 // held, or on the main thread when the audio thread has finished. 303 // held, or on the main thread when the audio thread has finished.
303 // Oilpan: This Vector holds connection references. We must call 304 // Oilpan: This Vector holds connection references. We must call
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 Member<PeriodicWave> m_periodicWaveTriangle; 349 Member<PeriodicWave> m_periodicWaveTriangle;
349 350
350 // This is considering 32 is large enough for multiple channels audio. 351 // This is considering 32 is large enough for multiple channels audio.
351 // It is somewhat arbitrary and could be increased if necessary. 352 // It is somewhat arbitrary and could be increased if necessary.
352 enum { MaxNumberOfChannels = 32 }; 353 enum { MaxNumberOfChannels = 32 };
353 }; 354 };
354 355
355 } // namespace blink 356 } // namespace blink
356 357
357 #endif // AbstractAudioContext_h 358 #endif // AbstractAudioContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698