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

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

Issue 9350014: Disables failing (low-latency) audio unit tests on Windows 7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/win/audio_low_latency_output_win_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <windows.h> 5 #include <windows.h>
6 #include <mmsystem.h> 6 #include <mmsystem.h>
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 oas->Start(&source); 529 oas->Start(&source);
530 ::Sleep(500); 530 ::Sleep(500);
531 oas->Stop(); 531 oas->Stop();
532 532
533 oas->Close(); 533 oas->Close();
534 } 534 }
535 535
536 // With the low latency mode, WASAPI is utilized by default for Vista and 536 // With the low latency mode, WASAPI is utilized by default for Vista and
537 // higher and Wave is used for XP and lower. It is possible to utilize a 537 // higher and Wave is used for XP and lower. It is possible to utilize a
538 // smaller buffer size for WASAPI than for Wave. 538 // smaller buffer size for WASAPI than for Wave.
539 TEST(WinAudioTest, PCMWaveStreamPlay200HzToneLowLatency) { 539 // TODO(henrika): enable this test again using an improved fall-back
540 // mechanism for those platforms which does not support mono output.
541 // See crbug.com/112986 for details.
542 TEST(WinAudioTest, DISABLED_PCMWaveStreamPlay200HzToneLowLatency) {
540 scoped_refptr<AudioManager> audio_man(AudioManager::Create()); 543 scoped_refptr<AudioManager> audio_man(AudioManager::Create());
541 if (!audio_man->HasAudioOutputDevices()) { 544 if (!audio_man->HasAudioOutputDevices()) {
542 LOG(WARNING) << "No output device detected."; 545 LOG(WARNING) << "No output device detected.";
543 return; 546 return;
544 } 547 }
545 548
546 // The WASAPI API requires a correct COM environment. 549 // The WASAPI API requires a correct COM environment.
547 ScopedCOMInitializer com_init(ScopedCOMInitializer::kMTA); 550 ScopedCOMInitializer com_init(ScopedCOMInitializer::kMTA);
548 551
549 // Use 10 ms buffer size for WASAPI and 50 ms buffer size for Wave. 552 // Use 10 ms buffer size for WASAPI and 50 ms buffer size for Wave.
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 &thread_context, 0, NULL); 733 &thread_context, 0, NULL);
731 734
732 oas->Start(&source); 735 oas->Start(&source);
733 736
734 ::WaitForSingleObject(thread, INFINITE); 737 ::WaitForSingleObject(thread, INFINITE);
735 ::CloseHandle(thread); 738 ::CloseHandle(thread);
736 739
737 oas->Stop(); 740 oas->Stop();
738 oas->Close(); 741 oas->Close();
739 } 742 }
OLDNEW
« no previous file with comments | « media/audio/win/audio_low_latency_output_win_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698