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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #include "modules/webaudio/AudioContext.h" | 29 #include "modules/webaudio/AudioContext.h" |
30 | 30 |
31 #include "bindings/v8/ExceptionMessages.h" | 31 #include "bindings/v8/ExceptionMessages.h" |
32 #include "bindings/v8/ExceptionState.h" | 32 #include "bindings/v8/ExceptionState.h" |
33 #include "core/dom/Document.h" | 33 #include "core/dom/Document.h" |
34 #include "core/dom/ExceptionCode.h" | 34 #include "core/dom/ExceptionCode.h" |
35 #include "core/html/HTMLMediaElement.h" | 35 #include "core/html/HTMLMediaElement.h" |
36 #include "core/inspector/ScriptCallStack.h" | 36 #include "core/inspector/ScriptCallStack.h" |
37 #include "platform/audio/FFTFrame.h" | 37 #include "platform/audio/FFTFrame.h" |
38 #include "platform/audio/HRTFDatabaseLoader.h" | |
39 #include "platform/audio/HRTFPanner.h" | 38 #include "platform/audio/HRTFPanner.h" |
40 #include "modules/mediastream/MediaStream.h" | 39 #include "modules/mediastream/MediaStream.h" |
41 #include "modules/webaudio/AnalyserNode.h" | 40 #include "modules/webaudio/AnalyserNode.h" |
42 #include "modules/webaudio/AsyncAudioDecoder.h" | |
43 #include "modules/webaudio/AudioBuffer.h" | 41 #include "modules/webaudio/AudioBuffer.h" |
44 #include "modules/webaudio/AudioBufferCallback.h" | 42 #include "modules/webaudio/AudioBufferCallback.h" |
45 #include "modules/webaudio/AudioBufferSourceNode.h" | 43 #include "modules/webaudio/AudioBufferSourceNode.h" |
46 #include "modules/webaudio/AudioListener.h" | 44 #include "modules/webaudio/AudioListener.h" |
47 #include "modules/webaudio/AudioNodeInput.h" | 45 #include "modules/webaudio/AudioNodeInput.h" |
48 #include "modules/webaudio/AudioNodeOutput.h" | 46 #include "modules/webaudio/AudioNodeOutput.h" |
49 #include "modules/webaudio/BiquadFilterNode.h" | 47 #include "modules/webaudio/BiquadFilterNode.h" |
50 #include "modules/webaudio/ChannelMergerNode.h" | 48 #include "modules/webaudio/ChannelMergerNode.h" |
51 #include "modules/webaudio/ChannelSplitterNode.h" | 49 #include "modules/webaudio/ChannelSplitterNode.h" |
52 #include "modules/webaudio/ConvolverNode.h" | 50 #include "modules/webaudio/ConvolverNode.h" |
(...skipping 12 matching lines...) Expand all Loading... |
65 #include "modules/webaudio/PeriodicWave.h" | 63 #include "modules/webaudio/PeriodicWave.h" |
66 #include "modules/webaudio/ScriptProcessorNode.h" | 64 #include "modules/webaudio/ScriptProcessorNode.h" |
67 #include "modules/webaudio/WaveShaperNode.h" | 65 #include "modules/webaudio/WaveShaperNode.h" |
68 | 66 |
69 #if DEBUG_AUDIONODE_REFERENCES | 67 #if DEBUG_AUDIONODE_REFERENCES |
70 #include <stdio.h> | 68 #include <stdio.h> |
71 #endif | 69 #endif |
72 | 70 |
73 #include "wtf/ArrayBuffer.h" | 71 #include "wtf/ArrayBuffer.h" |
74 #include "wtf/Atomics.h" | 72 #include "wtf/Atomics.h" |
75 #include "wtf/MainThread.h" | |
76 #include "wtf/OwnPtr.h" | |
77 #include "wtf/PassOwnPtr.h" | 73 #include "wtf/PassOwnPtr.h" |
78 #include "wtf/RefCounted.h" | |
79 #include "wtf/text/WTFString.h" | 74 #include "wtf/text/WTFString.h" |
80 | 75 |
81 // FIXME: check the proper way to reference an undefined thread ID | 76 // FIXME: check the proper way to reference an undefined thread ID |
82 const int UndefinedThreadIdentifier = 0xffffffff; | 77 const int UndefinedThreadIdentifier = 0xffffffff; |
83 | 78 |
84 namespace WebCore { | 79 namespace WebCore { |
85 | 80 |
86 bool AudioContext::isSampleRateRangeGood(float sampleRate) | 81 bool AudioContext::isSampleRateRangeGood(float sampleRate) |
87 { | 82 { |
88 // FIXME: It would be nice if the minimum sample-rate could be less than 44.
1KHz, | 83 // FIXME: It would be nice if the minimum sample-rate could be less than 44.
1KHz, |
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 } | 1101 } |
1107 | 1102 |
1108 void AudioContext::decrementActiveSourceCount() | 1103 void AudioContext::decrementActiveSourceCount() |
1109 { | 1104 { |
1110 atomicDecrement(&m_activeSourceCount); | 1105 atomicDecrement(&m_activeSourceCount); |
1111 } | 1106 } |
1112 | 1107 |
1113 } // namespace WebCore | 1108 } // namespace WebCore |
1114 | 1109 |
1115 #endif // ENABLE(WEB_AUDIO) | 1110 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |