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

Side by Side Diff: media/audio/win/audio_low_latency_output_win.h

Issue 10832285: Switch OnMoreData() to use AudioBus. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Comments. Created 8 years, 3 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/simple_sources_unittest.cc ('k') | media/audio/win/audio_low_latency_output_win.cc » ('j') | 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 // Implementation of AudioOutputStream for Windows using Windows Core Audio 5 // Implementation of AudioOutputStream for Windows using Windows Core Audio
6 // WASAPI for low latency rendering. 6 // WASAPI for low latency rendering.
7 // 7 //
8 // Overview of operation and performance: 8 // Overview of operation and performance:
9 // 9 //
10 // - An object of WASAPIAudioOutputStream is created by the AudioManager 10 // - An object of WASAPIAudioOutputStream is created by the AudioManager
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 // The audio engine will signal this event each time a buffer becomes 386 // The audio engine will signal this event each time a buffer becomes
387 // ready to be filled by the client. 387 // ready to be filled by the client.
388 base::win::ScopedHandle audio_samples_render_event_; 388 base::win::ScopedHandle audio_samples_render_event_;
389 389
390 // This event will be signaled when rendering shall stop. 390 // This event will be signaled when rendering shall stop.
391 base::win::ScopedHandle stop_render_event_; 391 base::win::ScopedHandle stop_render_event_;
392 392
393 // This event will be signaled when stream switching shall take place. 393 // This event will be signaled when stream switching shall take place.
394 base::win::ScopedHandle stream_switch_event_; 394 base::win::ScopedHandle stream_switch_event_;
395 395
396 // Container for retrieving data from AudioSourceCallback::OnMoreData().
397 scoped_ptr<AudioBus> audio_bus_;
398
396 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioOutputStream); 399 DISALLOW_COPY_AND_ASSIGN(WASAPIAudioOutputStream);
397 }; 400 };
398 401
399 } // namespace media 402 } // namespace media
400 403
401 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_OUTPUT_WIN_H_ 404 #endif // MEDIA_AUDIO_WIN_AUDIO_LOW_LATENCY_OUTPUT_WIN_H_
OLDNEW
« no previous file with comments | « media/audio/simple_sources_unittest.cc ('k') | media/audio/win/audio_low_latency_output_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698