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 25 matching lines...) Expand all Loading... |
36 #include "wtf/Atomics.h" | 36 #include "wtf/Atomics.h" |
37 #include "wtf/MainThread.h" | 37 #include "wtf/MainThread.h" |
38 | 38 |
39 #if DEBUG_AUDIONODE_REFERENCES | 39 #if DEBUG_AUDIONODE_REFERENCES |
40 #include <stdio.h> | 40 #include <stdio.h> |
41 #endif | 41 #endif |
42 | 42 |
43 namespace blink { | 43 namespace blink { |
44 | 44 |
45 AudioHandler::AudioHandler(NodeType nodeType, AudioNode& node, float sampleRate) | 45 AudioHandler::AudioHandler(NodeType nodeType, AudioNode& node, float sampleRate) |
46 : m_isInitialized(false) | 46 : m_context(node.context()) |
| 47 , m_isInitialized(false) |
47 , m_nodeType(NodeTypeUnknown) | 48 , m_nodeType(NodeTypeUnknown) |
48 , m_node(&node) | 49 , m_node(&node) |
49 , m_context(node.context()) | |
50 , m_sampleRate(sampleRate) | 50 , m_sampleRate(sampleRate) |
51 , m_lastProcessingTime(-1) | 51 , m_lastProcessingTime(-1) |
52 , m_lastNonSilentTime(-1) | 52 , m_lastNonSilentTime(-1) |
53 , m_connectionRefCount(0) | 53 , m_connectionRefCount(0) |
54 , m_isDisabled(false) | 54 , m_isDisabled(false) |
55 , m_channelCount(2) | 55 , m_channelCount(2) |
56 , m_channelCountMode(Max) | 56 , m_channelCountMode(Max) |
57 , m_channelInterpretation(AudioBus::Speakers) | 57 , m_channelInterpretation(AudioBus::Speakers) |
58 , m_newChannelCountMode(Max) | 58 , m_newChannelCountMode(Max) |
59 { | 59 { |
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
929 { | 929 { |
930 m_connectedNodes.append(nullptr); | 930 m_connectedNodes.append(nullptr); |
931 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedNodes.size()); | 931 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedNodes.size()); |
932 m_connectedParams.append(nullptr); | 932 m_connectedParams.append(nullptr); |
933 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedParams.size()); | 933 ASSERT_UNUSED(numberOfOutputs, numberOfOutputs == m_connectedParams.size()); |
934 } | 934 } |
935 | 935 |
936 } // namespace blink | 936 } // namespace blink |
937 | 937 |
938 #endif // ENABLE(WEB_AUDIO) | 938 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |