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

Side by Side Diff: Source/WebCore/platform/audio/FFTFrame.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 302
303 #endif // !USE_ACCELERATE_FFT 303 #endif // !USE_ACCELERATE_FFT
304 } 304 }
305 305
306 #ifndef NDEBUG 306 #ifndef NDEBUG
307 void FFTFrame::print() 307 void FFTFrame::print()
308 { 308 {
309 FFTFrame& frame = *this; 309 FFTFrame& frame = *this;
310 float* realP = frame.realData(); 310 float* realP = frame.realData();
311 float* imagP = frame.imagData(); 311 float* imagP = frame.imagData();
312 LOG(WebAudio, "**** \n"); 312 LOG_INFO(WebAudio, "**** \n");
313 LOG(WebAudio, "DC = %f : nyquist = %f\n", realP[0], imagP[0]); 313 LOG_INFO(WebAudio, "DC = %f : nyquist = %f\n", realP[0], imagP[0]);
314 314
315 int n = m_FFTSize / 2; 315 int n = m_FFTSize / 2;
316 316
317 for (int i = 1; i < n; i++) { 317 for (int i = 1; i < n; i++) {
318 double mag = sqrt(realP[i] * realP[i] + imagP[i] * imagP[i]); 318 double mag = sqrt(realP[i] * realP[i] + imagP[i] * imagP[i]);
319 double phase = atan2(realP[i], imagP[i]); 319 double phase = atan2(realP[i], imagP[i]);
320 320
321 LOG(WebAudio, "[%d] (%f %f)\n", i, mag, phase); 321 LOG_INFO(WebAudio, "[%d] (%f %f)\n", i, mag, phase);
322 } 322 }
323 LOG(WebAudio, "****\n"); 323 LOG_INFO(WebAudio, "****\n");
324 } 324 }
325 #endif // NDEBUG 325 #endif // NDEBUG
326 326
327 } // namespace WebCore 327 } // namespace WebCore
328 328
329 #endif // ENABLE(WEB_AUDIO) 329 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/WebCore/loader/icon/IconRecord.cpp ('k') | Source/WebCore/platform/graphics/MediaPlayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698