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

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

Issue 2282483002: Return the correct channelCountMode and channelInterpretation (Closed)
Patch Set: Define setters for the mode and interpretation Created 4 years, 3 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 , m_framesProcessed(0) 47 , m_framesProcessed(0)
48 , m_framesToProcess(0) 48 , m_framesToProcess(0)
49 , m_isRenderingStarted(false) 49 , m_isRenderingStarted(false)
50 , m_shouldSuspend(false) 50 , m_shouldSuspend(false)
51 { 51 {
52 m_renderBus = AudioBus::create(renderTarget->numberOfChannels(), renderQuant umSize); 52 m_renderBus = AudioBus::create(renderTarget->numberOfChannels(), renderQuant umSize);
53 m_framesToProcess = m_renderTarget->length(); 53 m_framesToProcess = m_renderTarget->length();
54 54
55 // Node-specific defaults. 55 // Node-specific defaults.
56 m_channelCount = m_renderTarget->numberOfChannels(); 56 m_channelCount = m_renderTarget->numberOfChannels();
57 m_channelCountMode = Explicit; 57 setInternalChannelCountMode(Explicit);
58 m_channelInterpretation = AudioBus::Speakers; 58 setInternalChannelInterpretation(AudioBus::Speakers);
59 } 59 }
60 60
61 PassRefPtr<OfflineAudioDestinationHandler> OfflineAudioDestinationHandler::creat e(AudioNode& node, AudioBuffer* renderTarget) 61 PassRefPtr<OfflineAudioDestinationHandler> OfflineAudioDestinationHandler::creat e(AudioNode& node, AudioBuffer* renderTarget)
62 { 62 {
63 return adoptRef(new OfflineAudioDestinationHandler(node, renderTarget)); 63 return adoptRef(new OfflineAudioDestinationHandler(node, renderTarget));
64 } 64 }
65 65
66 OfflineAudioDestinationHandler::~OfflineAudioDestinationHandler() 66 OfflineAudioDestinationHandler::~OfflineAudioDestinationHandler()
67 { 67 {
68 DCHECK(!isInitialized()); 68 DCHECK(!isInitialized());
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 { 320 {
321 setHandler(OfflineAudioDestinationHandler::create(*this, renderTarget)); 321 setHandler(OfflineAudioDestinationHandler::create(*this, renderTarget));
322 } 322 }
323 323
324 OfflineAudioDestinationNode* OfflineAudioDestinationNode::create(BaseAudioContex t* context, AudioBuffer* renderTarget) 324 OfflineAudioDestinationNode* OfflineAudioDestinationNode::create(BaseAudioContex t* context, AudioBuffer* renderTarget)
325 { 325 {
326 return new OfflineAudioDestinationNode(*context, renderTarget); 326 return new OfflineAudioDestinationNode(*context, renderTarget);
327 } 327 }
328 328
329 } // namespace blink 329 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698