Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp

Issue 2276973002: Revert CL 2242573002 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 #include "modules/webaudio/BaseAudioContext.h" 29 #include "modules/webaudio/BaseAudioContext.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 DefaultAudioDestinationHandler::DefaultAudioDestinationHandler(AudioNode& node) 33 DefaultAudioDestinationHandler::DefaultAudioDestinationHandler(AudioNode& node)
34 : AudioDestinationHandler(node, AudioDestination::hardwareSampleRate()) 34 : AudioDestinationHandler(node, AudioDestination::hardwareSampleRate())
35 , m_numberOfInputChannels(0) 35 , m_numberOfInputChannels(0)
36 { 36 {
37 // Node-specific default mixing rules. 37 // Node-specific default mixing rules.
38 m_channelCount = 2; 38 m_channelCount = 2;
39 setInternalChannelCountMode(Explicit); 39 m_channelCountMode = Explicit;
40 setInternalChannelInterpretation(AudioBus::Speakers); 40 m_channelInterpretation = AudioBus::Speakers;
41 } 41 }
42 42
43 PassRefPtr<DefaultAudioDestinationHandler> DefaultAudioDestinationHandler::creat e(AudioNode& node) 43 PassRefPtr<DefaultAudioDestinationHandler> DefaultAudioDestinationHandler::creat e(AudioNode& node)
44 { 44 {
45 return adoptRef(new DefaultAudioDestinationHandler(node)); 45 return adoptRef(new DefaultAudioDestinationHandler(node));
46 } 46 }
47 47
48 DefaultAudioDestinationHandler::~DefaultAudioDestinationHandler() 48 DefaultAudioDestinationHandler::~DefaultAudioDestinationHandler()
49 { 49 {
50 DCHECK(!isInitialized()); 50 DCHECK(!isInitialized());
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 setHandler(DefaultAudioDestinationHandler::create(*this)); 143 setHandler(DefaultAudioDestinationHandler::create(*this));
144 } 144 }
145 145
146 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(BaseAudioContex t* context) 146 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(BaseAudioContex t* context)
147 { 147 {
148 return new DefaultAudioDestinationNode(*context); 148 return new DefaultAudioDestinationNode(*context);
149 } 149 }
150 150
151 } // namespace blink 151 } // namespace blink
152 152
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698