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

Side by Side Diff: media/audio/win/audio_manager_win.cc

Issue 730083002: [media/audio] Convert VLOGs to DVLOGs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/audio_io.h" 5 #include "media/audio/audio_io.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include <objbase.h> // This has to be before initguid.h 8 #include <objbase.h> // This has to be before initguid.h
9 #include <initguid.h> 9 #include <initguid.h>
10 #include <mmsystem.h> 10 #include <mmsystem.h>
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 // operations that have already been done such as opening up a client 473 // operations that have already been done such as opening up a client
474 // and fetching the WAVEFORMATPCMEX format. Ideally we should only do 474 // and fetching the WAVEFORMATPCMEX format. Ideally we should only do
475 // that once. Then here, we can check the layout from the data we 475 // that once. Then here, we can check the layout from the data we
476 // already hold. 476 // already hold.
477 if (CoreAudioUtil::IsChannelLayoutSupported( 477 if (CoreAudioUtil::IsChannelLayoutSupported(
478 output_device_id, eRender, eConsole, 478 output_device_id, eRender, eConsole,
479 input_params.channel_layout())) { 479 input_params.channel_layout())) {
480 // Open up using the same channel layout as the source if it is 480 // Open up using the same channel layout as the source if it is
481 // supported by the hardware. 481 // supported by the hardware.
482 channel_layout = input_params.channel_layout(); 482 channel_layout = input_params.channel_layout();
483 VLOG(1) << "Hardware channel layout is not used; using same layout" 483 DVLOG(1) << "Hardware channel layout is not used; using same layout"
484 << " as the source instead (" << channel_layout << ")"; 484 << " as the source instead (" << channel_layout << ")";
485 } 485 }
486 } 486 }
487 } 487 }
488 488
489 effects |= input_params.effects(); 489 effects |= input_params.effects();
490 if (use_input_params) { 490 if (use_input_params) {
491 // If WASAPI isn't supported we'll fallback to WaveOut, which will take 491 // If WASAPI isn't supported we'll fallback to WaveOut, which will take
492 // care of resampling and bits per sample changes. By setting these 492 // care of resampling and bits per sample changes. By setting these
493 // equal to the input values, AudioOutputResampler will skip resampling 493 // equal to the input values, AudioOutputResampler will skip resampling
494 // and bit per sample differences (since the input parameters will match 494 // and bit per sample differences (since the input parameters will match
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 return new PCMWaveInAudioInputStream(this, params, kNumInputBuffers, 526 return new PCMWaveInAudioInputStream(this, params, kNumInputBuffers,
527 xp_device_id); 527 xp_device_id);
528 } 528 }
529 529
530 /// static 530 /// static
531 AudioManager* CreateAudioManager(AudioLogFactory* audio_log_factory) { 531 AudioManager* CreateAudioManager(AudioLogFactory* audio_log_factory) {
532 return new AudioManagerWin(audio_log_factory); 532 return new AudioManagerWin(audio_log_factory);
533 } 533 }
534 534
535 } // namespace media 535 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/win/audio_low_latency_output_win_unittest.cc ('k') | media/audio/win/core_audio_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698