| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 class ScriptState; | 76 class ScriptState; |
| 77 class SecurityOrigin; | 77 class SecurityOrigin; |
| 78 class StereoPannerNode; | 78 class StereoPannerNode; |
| 79 class WaveShaperNode; | 79 class WaveShaperNode; |
| 80 | 80 |
| 81 // AbstractAudioContext is the cornerstone of the web audio API and all AudioNod
es are created from it. | 81 // AbstractAudioContext is the cornerstone of the web audio API and all AudioNod
es are created from it. |
| 82 // For thread safety between the audio thread and the main thread, it has a rend
ering graph locking mechanism. | 82 // For thread safety between the audio thread and the main thread, it has a rend
ering graph locking mechanism. |
| 83 | 83 |
| 84 class MODULES_EXPORT AbstractAudioContext : public RefCountedGarbageCollectedEve
ntTargetWithInlineData<AbstractAudioContext>, public ActiveScriptWrappable, publ
ic ActiveDOMObject { | 84 class MODULES_EXPORT AbstractAudioContext : public RefCountedGarbageCollectedEve
ntTargetWithInlineData<AbstractAudioContext>, public ActiveScriptWrappable, publ
ic ActiveDOMObject { |
| 85 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(AbstractAudioContext); | 85 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(AbstractAudioContext); |
| 86 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(AbstractAudioContext); | 86 USING_GARBAGE_COLLECTED_MIXIN(AbstractAudioContext); |
| 87 DEFINE_WRAPPERTYPEINFO(); | 87 DEFINE_WRAPPERTYPEINFO(); |
| 88 public: | 88 public: |
| 89 // The state of an audio context. On creation, the state is Suspended. The
state is Running if | 89 // The state of an audio context. On creation, the state is Suspended. The
state is Running if |
| 90 // audio is being processed (audio graph is being pulled for data). The stat
e is Closed if the | 90 // audio is being processed (audio graph is being pulled for data). The stat
e is Closed if the |
| 91 // audio context has been closed. The valid transitions are from Suspended
to either Running or | 91 // audio context has been closed. The valid transitions are from Suspended
to either Running or |
| 92 // Closed; Running to Suspended or Closed. Once Closed, there are no valid t
ransitions. | 92 // Closed; Running to Suspended or Closed. Once Closed, there are no valid t
ransitions. |
| 93 enum AudioContextState { | 93 enum AudioContextState { |
| 94 Suspended, | 94 Suspended, |
| 95 Running, | 95 Running, |
| 96 Closed | 96 Closed |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 Member<PeriodicWave> m_periodicWaveTriangle; | 348 Member<PeriodicWave> m_periodicWaveTriangle; |
| 349 | 349 |
| 350 // This is considering 32 is large enough for multiple channels audio. | 350 // This is considering 32 is large enough for multiple channels audio. |
| 351 // It is somewhat arbitrary and could be increased if necessary. | 351 // It is somewhat arbitrary and could be increased if necessary. |
| 352 enum { MaxNumberOfChannels = 32 }; | 352 enum { MaxNumberOfChannels = 32 }; |
| 353 }; | 353 }; |
| 354 | 354 |
| 355 } // namespace blink | 355 } // namespace blink |
| 356 | 356 |
| 357 #endif // AbstractAudioContext_h | 357 #endif // AbstractAudioContext_h |
| OLD | NEW |