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

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

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 m_numberOfInputChannels = 0; 78 m_numberOfInputChannels = 0;
79 79
80 AudioHandler::uninitialize(); 80 AudioHandler::uninitialize();
81 } 81 }
82 82
83 void DefaultAudioDestinationHandler::createDestination() 83 void DefaultAudioDestinationHandler::createDestination()
84 { 84 {
85 float hardwareSampleRate = AudioDestination::hardwareSampleRate(); 85 float hardwareSampleRate = AudioDestination::hardwareSampleRate();
86 WTF_LOG(WebAudio, ">>>> hardwareSampleRate = %f\n", hardwareSampleRate); 86 WTF_LOG(WebAudio, ">>>> hardwareSampleRate = %f\n", hardwareSampleRate);
87 87
88 m_destination = AudioDestination::create(*this, m_inputDeviceId, m_numberOfI nputChannels, channelCount(), hardwareSampleRate, context()->securityOrigin()); 88 m_destination = AudioDestination::create(*this, m_inputDeviceId, m_numberOfI nputChannels, channelCount(), hardwareSampleRate, context()->getSecurityOrigin() );
89 } 89 }
90 90
91 void DefaultAudioDestinationHandler::startRendering() 91 void DefaultAudioDestinationHandler::startRendering()
92 { 92 {
93 ASSERT(isInitialized()); 93 ASSERT(isInitialized());
94 if (isInitialized()) { 94 if (isInitialized()) {
95 ASSERT(!m_destination->isPlaying()); 95 ASSERT(!m_destination->isPlaying());
96 m_destination->start(); 96 m_destination->start();
97 } 97 }
98 } 98 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 setHandler(DefaultAudioDestinationHandler::create(*this)); 145 setHandler(DefaultAudioDestinationHandler::create(*this));
146 } 146 }
147 147
148 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(AbstractAudioCo ntext* context) 148 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(AbstractAudioCo ntext* context)
149 { 149 {
150 return new DefaultAudioDestinationNode(*context); 150 return new DefaultAudioDestinationNode(*context);
151 } 151 }
152 152
153 } // namespace blink 153 } // namespace blink
154 154
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698