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

Side by Side Diff: Source/WebCore/Modules/webaudio/DefaultAudioDestinationNode.cpp

Issue 13643002: Rename LOG() to LOG_INFO() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebase Created 7 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
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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 69
70 m_destination->stop(); 70 m_destination->stop();
71 m_numberOfInputChannels = 0; 71 m_numberOfInputChannels = 0;
72 72
73 AudioNode::uninitialize(); 73 AudioNode::uninitialize();
74 } 74 }
75 75
76 void DefaultAudioDestinationNode::createDestination() 76 void DefaultAudioDestinationNode::createDestination()
77 { 77 {
78 float hardwareSampleRate = AudioDestination::hardwareSampleRate(); 78 float hardwareSampleRate = AudioDestination::hardwareSampleRate();
79 LOG(WebAudio, ">>>> hardwareSampleRate = %f\n", hardwareSampleRate); 79 LOG_INFO(WebAudio, ">>>> hardwareSampleRate = %f\n", hardwareSampleRate);
80 80
81 m_destination = AudioDestination::create(*this, m_inputDeviceId, m_numberOfI nputChannels, channelCount(), hardwareSampleRate); 81 m_destination = AudioDestination::create(*this, m_inputDeviceId, m_numberOfI nputChannels, channelCount(), hardwareSampleRate);
82 } 82 }
83 83
84 void DefaultAudioDestinationNode::enableInput(const String& inputDeviceId) 84 void DefaultAudioDestinationNode::enableInput(const String& inputDeviceId)
85 { 85 {
86 ASSERT(isMainThread()); 86 ASSERT(isMainThread());
87 if (m_numberOfInputChannels != EnabledInputChannels) { 87 if (m_numberOfInputChannels != EnabledInputChannels) {
88 m_numberOfInputChannels = EnabledInputChannels; 88 m_numberOfInputChannels = EnabledInputChannels;
89 m_inputDeviceId = inputDeviceId; 89 m_inputDeviceId = inputDeviceId;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // Re-create destination. 129 // Re-create destination.
130 m_destination->stop(); 130 m_destination->stop();
131 createDestination(); 131 createDestination();
132 m_destination->start(); 132 m_destination->start();
133 } 133 }
134 } 134 }
135 135
136 } // namespace WebCore 136 } // namespace WebCore
137 137
138 #endif // ENABLE(WEB_AUDIO) 138 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/WebCore/Modules/indexeddb/IDBTracing.h ('k') | Source/WebCore/Modules/webaudio/MediaElementAudioSourceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698