| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |