| OLD | NEW |
| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 void clear(); | 294 void clear(); |
| 295 | 295 |
| 296 void throwExceptionForClosedState(ExceptionState&); | 296 void throwExceptionForClosedState(ExceptionState&); |
| 297 | 297 |
| 298 // When the context goes away, there might still be some sources which | 298 // When the context goes away, there might still be some sources which |
| 299 // haven't finished playing. Make sure to release them here. | 299 // haven't finished playing. Make sure to release them here. |
| 300 void releaseActiveSourceNodes(); | 300 void releaseActiveSourceNodes(); |
| 301 | 301 |
| 302 void removeFinishedSourceNodes(); | 302 void removeFinishedSourceNodes(); |
| 303 | 303 |
| 304 // Listener for the PannerNodes |
| 304 Member<AudioListener> m_listener; | 305 Member<AudioListener> m_listener; |
| 305 | 306 |
| 306 // Only accessed in the audio thread. | 307 // Only accessed in the audio thread. |
| 307 // These raw pointers are safe because AudioSourceNodes in | 308 // These raw pointers are safe because AudioSourceNodes in |
| 308 // m_activeSourceNodes own them. | 309 // m_activeSourceNodes own them. |
| 309 Vector<AudioHandler*> m_finishedSourceHandlers; | 310 Vector<AudioHandler*> m_finishedSourceHandlers; |
| 310 | 311 |
| 311 // List of source nodes. This is either accessed when the graph lock is | 312 // List of source nodes. This is either accessed when the graph lock is |
| 312 // held, or on the main thread when the audio thread has finished. | 313 // held, or on the main thread when the audio thread has finished. |
| 313 // Oilpan: This Vector holds connection references. We must call | 314 // Oilpan: This Vector holds connection references. We must call |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 364 Member<PeriodicWave> m_periodicWaveTriangle; | 365 Member<PeriodicWave> m_periodicWaveTriangle; |
| 365 | 366 |
| 366 // This is considering 32 is large enough for multiple channels audio. | 367 // This is considering 32 is large enough for multiple channels audio. |
| 367 // It is somewhat arbitrary and could be increased if necessary. | 368 // It is somewhat arbitrary and could be increased if necessary. |
| 368 enum { MaxNumberOfChannels = 32 }; | 369 enum { MaxNumberOfChannels = 32 }; |
| 369 }; | 370 }; |
| 370 | 371 |
| 371 } // namespace blink | 372 } // namespace blink |
| 372 | 373 |
| 373 #endif // AbstractAudioContext_h | 374 #endif // AbstractAudioContext_h |
| OLD | NEW |