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

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

Issue 1837113002: Remove WebAudio WTF Logging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/Logging.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 m_destination->stop(); 76 m_destination->stop();
77 m_numberOfInputChannels = 0; 77 m_numberOfInputChannels = 0;
78 78
79 AudioHandler::uninitialize(); 79 AudioHandler::uninitialize();
80 } 80 }
81 81
82 void DefaultAudioDestinationHandler::createDestination() 82 void DefaultAudioDestinationHandler::createDestination()
83 { 83 {
84 float hardwareSampleRate = AudioDestination::hardwareSampleRate(); 84 float hardwareSampleRate = AudioDestination::hardwareSampleRate();
85 WTF_LOG(WebAudio, ">>>> hardwareSampleRate = %f\n", hardwareSampleRate); 85 VLOG(1) << ">>>> hardwareSampleRate = " << hardwareSampleRate;
86 86
87 m_destination = AudioDestination::create(*this, m_inputDeviceId, m_numberOfI nputChannels, channelCount(), hardwareSampleRate, context()->getSecurityOrigin() ); 87 m_destination = AudioDestination::create(*this, m_inputDeviceId, m_numberOfI nputChannels, channelCount(), hardwareSampleRate, context()->getSecurityOrigin() );
88 } 88 }
89 89
90 void DefaultAudioDestinationHandler::startRendering() 90 void DefaultAudioDestinationHandler::startRendering()
91 { 91 {
92 ASSERT(isInitialized()); 92 ASSERT(isInitialized());
93 if (isInitialized()) { 93 if (isInitialized()) {
94 ASSERT(!m_destination->isPlaying()); 94 ASSERT(!m_destination->isPlaying());
95 m_destination->start(); 95 m_destination->start();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 setHandler(DefaultAudioDestinationHandler::create(*this)); 144 setHandler(DefaultAudioDestinationHandler::create(*this));
145 } 145 }
146 146
147 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(AbstractAudioCo ntext* context) 147 DefaultAudioDestinationNode* DefaultAudioDestinationNode::create(AbstractAudioCo ntext* 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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/Logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698