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

Side by Side Diff: media/audio/cras/audio_manager_cras.h

Issue 163343002: Reland 153623004: Remove the unified IO code on the browser (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed the cras bot Created 6 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
« no previous file with comments | « media/audio/audio_output_resampler.cc ('k') | media/audio/cras/audio_manager_cras.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ 5 #ifndef MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_
6 #define MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ 6 #define MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_
7 7
8 #include <cras_types.h> 8 #include <cras_types.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 17 matching lines...) Expand all
28 virtual void GetAudioOutputDeviceNames( 28 virtual void GetAudioOutputDeviceNames(
29 AudioDeviceNames* device_names) OVERRIDE; 29 AudioDeviceNames* device_names) OVERRIDE;
30 virtual AudioParameters GetInputStreamParameters( 30 virtual AudioParameters GetInputStreamParameters(
31 const std::string& device_id) OVERRIDE; 31 const std::string& device_id) OVERRIDE;
32 32
33 // AudioManagerBase implementation. 33 // AudioManagerBase implementation.
34 virtual AudioOutputStream* MakeLinearOutputStream( 34 virtual AudioOutputStream* MakeLinearOutputStream(
35 const AudioParameters& params) OVERRIDE; 35 const AudioParameters& params) OVERRIDE;
36 virtual AudioOutputStream* MakeLowLatencyOutputStream( 36 virtual AudioOutputStream* MakeLowLatencyOutputStream(
37 const AudioParameters& params, 37 const AudioParameters& params,
38 const std::string& device_id, 38 const std::string& device_id) OVERRIDE;
39 const std::string& input_device_id) OVERRIDE;
40 virtual AudioInputStream* MakeLinearInputStream( 39 virtual AudioInputStream* MakeLinearInputStream(
41 const AudioParameters& params, const std::string& device_id) OVERRIDE; 40 const AudioParameters& params, const std::string& device_id) OVERRIDE;
42 virtual AudioInputStream* MakeLowLatencyInputStream( 41 virtual AudioInputStream* MakeLowLatencyInputStream(
43 const AudioParameters& params, const std::string& device_id) OVERRIDE; 42 const AudioParameters& params, const std::string& device_id) OVERRIDE;
44 43
45 static snd_pcm_format_t BitsToFormat(int bits_per_sample); 44 static snd_pcm_format_t BitsToFormat(int bits_per_sample);
46 45
47 protected: 46 protected:
48 virtual ~AudioManagerCras(); 47 virtual ~AudioManagerCras();
49 48
50 virtual AudioParameters GetPreferredOutputStreamParameters( 49 virtual AudioParameters GetPreferredOutputStreamParameters(
51 const std::string& output_device_id, 50 const std::string& output_device_id,
52 const AudioParameters& input_params) OVERRIDE; 51 const AudioParameters& input_params) OVERRIDE;
53 52
54 private: 53 private:
55 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream. 54 // Called by MakeLinearOutputStream and MakeLowLatencyOutputStream.
56 AudioOutputStream* MakeOutputStream(const AudioParameters& params); 55 AudioOutputStream* MakeOutputStream(const AudioParameters& params);
57 56
58 // Called by MakeLinearInputStream and MakeLowLatencyInputStream. 57 // Called by MakeLinearInputStream and MakeLowLatencyInputStream.
59 AudioInputStream* MakeInputStream(const AudioParameters& params, 58 AudioInputStream* MakeInputStream(const AudioParameters& params,
60 const std::string& device_id); 59 const std::string& device_id);
61 60
62 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras); 61 DISALLOW_COPY_AND_ASSIGN(AudioManagerCras);
63 }; 62 };
64 63
65 } // namespace media 64 } // namespace media
66 65
67 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_ 66 #endif // MEDIA_AUDIO_CRAS_AUDIO_MANAGER_CRAS_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_resampler.cc ('k') | media/audio/cras/audio_manager_cras.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698