OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 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 19 matching lines...) Expand all Loading... |
30 #include "platform/Logging.h" | 30 #include "platform/Logging.h" |
31 | 31 |
32 namespace blink { | 32 namespace blink { |
33 | 33 |
34 DefaultAudioDestinationHandler::DefaultAudioDestinationHandler(AudioNode& node) | 34 DefaultAudioDestinationHandler::DefaultAudioDestinationHandler(AudioNode& node) |
35 : AudioDestinationHandler(node, AudioDestination::hardwareSampleRate()) | 35 : AudioDestinationHandler(node, AudioDestination::hardwareSampleRate()) |
36 , m_numberOfInputChannels(0) | 36 , m_numberOfInputChannels(0) |
37 { | 37 { |
38 // Node-specific default mixing rules. | 38 // Node-specific default mixing rules. |
39 m_channelCount = 2; | 39 m_channelCount = 2; |
40 m_channelCountMode = Explicit; | 40 setInternalChannelCountMode(Explicit); |
41 m_channelInterpretation = AudioBus::Speakers; | 41 setInternalChannelInterpretation(AudioBus::Speakers); |
42 } | 42 } |
43 | 43 |
44 PassRefPtr<DefaultAudioDestinationHandler> DefaultAudioDestinationHandler::creat
e(AudioNode& node) | 44 PassRefPtr<DefaultAudioDestinationHandler> DefaultAudioDestinationHandler::creat
e(AudioNode& node) |
45 { | 45 { |
46 return adoptRef(new DefaultAudioDestinationHandler(node)); | 46 return adoptRef(new DefaultAudioDestinationHandler(node)); |
47 } | 47 } |
48 | 48 |
49 DefaultAudioDestinationHandler::~DefaultAudioDestinationHandler() | 49 DefaultAudioDestinationHandler::~DefaultAudioDestinationHandler() |
50 { | 50 { |
51 ASSERT(!isInitialized()); | 51 ASSERT(!isInitialized()); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 setHandler(DefaultAudioDestinationHandler::create(*this)); | 144 setHandler(DefaultAudioDestinationHandler::create(*this)); |
145 } | 145 } |
146 | 146 |
147 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(BaseAudioContex
t* context) | 147 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(BaseAudioContex
t* context) |
148 { | 148 { |
149 return new DefaultAudioDestinationNode(*context); | 149 return new DefaultAudioDestinationNode(*context); |
150 } | 150 } |
151 | 151 |
152 } // namespace blink | 152 } // namespace blink |
153 | 153 |
OLD | NEW |