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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 { | 125 { |
126 constructCommon(); | 126 constructCommon(); |
127 | 127 |
128 m_destinationNode = DefaultAudioDestinationNode::create(this); | 128 m_destinationNode = DefaultAudioDestinationNode::create(this); |
129 | 129 |
130 // This sets in motion an asynchronous loading mechanism on another thread. | 130 // This sets in motion an asynchronous loading mechanism on another thread. |
131 // We can check m_hrtfDatabaseLoader->isLoaded() to find out whether or not
it has been fully loaded. | 131 // We can check m_hrtfDatabaseLoader->isLoaded() to find out whether or not
it has been fully loaded. |
132 // It's not that useful to have a callback function for this since the audio
thread automatically starts rendering on the graph | 132 // It's not that useful to have a callback function for this since the audio
thread automatically starts rendering on the graph |
133 // when this has finished (see AudioDestinationNode). | 133 // when this has finished (see AudioDestinationNode). |
134 m_hrtfDatabaseLoader = HRTFDatabaseLoader::createAndLoadAsynchronouslyIfNece
ssary(sampleRate()); | 134 m_hrtfDatabaseLoader = HRTFDatabaseLoader::createAndLoadAsynchronouslyIfNece
ssary(sampleRate()); |
| 135 |
| 136 m_midiAccess = MIDIAccess::create(scriptExecutionContext()); |
135 } | 137 } |
136 | 138 |
137 // Constructor for offline (non-realtime) rendering. | 139 // Constructor for offline (non-realtime) rendering. |
138 AudioContext::AudioContext(Document* document, unsigned numberOfChannels, size_t
numberOfFrames, float sampleRate) | 140 AudioContext::AudioContext(Document* document, unsigned numberOfChannels, size_t
numberOfFrames, float sampleRate) |
139 : ActiveDOMObject(document) | 141 : ActiveDOMObject(document) |
140 , m_isStopScheduled(false) | 142 , m_isStopScheduled(false) |
141 , m_isInitialized(false) | 143 , m_isInitialized(false) |
142 , m_isAudioThreadFinished(false) | 144 , m_isAudioThreadFinished(false) |
143 , m_destinationNode(0) | 145 , m_destinationNode(0) |
144 , m_automaticPullNodesNeedUpdating(false) | 146 , m_automaticPullNodesNeedUpdating(false) |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 info.addMember(m_deferredFinishDerefList, "deferredFinishDerefList"); | 981 info.addMember(m_deferredFinishDerefList, "deferredFinishDerefList"); |
980 info.addMember(m_hrtfDatabaseLoader, "hrtfDatabaseLoader"); | 982 info.addMember(m_hrtfDatabaseLoader, "hrtfDatabaseLoader"); |
981 info.addMember(m_eventTargetData, "eventTargetData"); | 983 info.addMember(m_eventTargetData, "eventTargetData"); |
982 info.addMember(m_renderTarget, "renderTarget"); | 984 info.addMember(m_renderTarget, "renderTarget"); |
983 info.addMember(m_audioDecoder, "audioDecoder"); | 985 info.addMember(m_audioDecoder, "audioDecoder"); |
984 } | 986 } |
985 | 987 |
986 } // namespace WebCore | 988 } // namespace WebCore |
987 | 989 |
988 #endif // ENABLE(WEB_AUDIO) | 990 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |