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

Side by Side Diff: remoting/host/audio_capturer_win.h

Issue 2903153004: [Chromoting] Implement down mixing in AudioPump (Closed)
Patch Set: Resolve review comments Created 3 years, 6 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 // 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 #ifndef REMOTING_HOST_AUDIO_CAPTURER_WIN_H_ 5 #ifndef REMOTING_HOST_AUDIO_CAPTURER_WIN_H_
6 #define REMOTING_HOST_AUDIO_CAPTURER_WIN_H_ 6 #define REMOTING_HOST_AUDIO_CAPTURER_WIN_H_
7 7
8 #include <audioclient.h> 8 #include <audioclient.h>
9 #include <mmdeviceapi.h> 9 #include <mmdeviceapi.h>
10 10
11 #include <memory> 11 #include <memory>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/threading/thread_checker.h" 14 #include "base/threading/thread_checker.h"
15 #include "base/timer/timer.h" 15 #include "base/timer/timer.h"
16 #include "base/win/scoped_co_mem.h" 16 #include "base/win/scoped_co_mem.h"
17 #include "base/win/scoped_comptr.h" 17 #include "base/win/scoped_comptr.h"
18 #include "remoting/host/audio_capturer.h" 18 #include "remoting/host/audio_capturer.h"
19 #include "remoting/host/win/audio_volume_filter_win.h" 19 #include "remoting/host/win/audio_volume_filter_win.h"
20 #include "remoting/proto/audio.pb.h" 20 #include "remoting/proto/audio.pb.h"
21 21
22 namespace remoting { 22 namespace remoting {
23 23
24 class DefaultAudioDeviceChangeDetector; 24 class DefaultAudioDeviceChangeDetector;
25 25
26 // An AudioCapturer implementation for Windows by using Windows Audio Session
27 // API, a.k.a. WASAPI. It supports up to 8 channels, but treats all layouts as
28 // a most commonly used one. E.g. 3.1 and surround layouts will both be marked
29 // as surround layout.
26 class AudioCapturerWin : public AudioCapturer { 30 class AudioCapturerWin : public AudioCapturer {
27 public: 31 public:
28 AudioCapturerWin(); 32 AudioCapturerWin();
29 ~AudioCapturerWin() override; 33 ~AudioCapturerWin() override;
30 34
31 // AudioCapturer interface. 35 // AudioCapturer interface.
32 bool Start(const PacketCapturedCallback& callback) override; 36 bool Start(const PacketCapturedCallback& callback) override;
33 37
34 private: 38 private:
35 // Executes Deinitialize() and Initialize(). If Initialize() function call 39 // Executes Deinitialize() and Initialize(). If Initialize() function call
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 HRESULT last_capture_error_; 78 HRESULT last_capture_error_;
75 79
76 base::ThreadChecker thread_checker_; 80 base::ThreadChecker thread_checker_;
77 81
78 DISALLOW_COPY_AND_ASSIGN(AudioCapturerWin); 82 DISALLOW_COPY_AND_ASSIGN(AudioCapturerWin);
79 }; 83 };
80 84
81 } // namespace remoting 85 } // namespace remoting
82 86
83 #endif // REMOTING_HOST_AUDIO_CAPTURER_WIN_H_ 87 #endif // REMOTING_HOST_AUDIO_CAPTURER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698