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

Side by Side Diff: media/audio/linux/alsa_wrapper.h

Issue 9965076: Revert 130180 - Move media/audio files into media namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/linux/alsa_util.cc ('k') | media/audio/linux/alsa_wrapper.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 // AlsaWrapper is a simple stateless class that wraps the alsa library commands 5 // AlsaWrapper is a simple stateless class that wraps the alsa library commands
6 // we want to use. It's purpose is to allow injection of a mock so that the 6 // we want to use. It's purpose is to allow injection of a mock so that the
7 // higher level code is testable. 7 // higher level code is testable.
8 8
9 #include <alsa/asoundlib.h> 9 #include <alsa/asoundlib.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "media/base/media_export.h" 12 #include "media/base/media_export.h"
13 13
14 namespace media {
15
16 class MEDIA_EXPORT AlsaWrapper { 14 class MEDIA_EXPORT AlsaWrapper {
17 public: 15 public:
18 AlsaWrapper(); 16 AlsaWrapper();
19 virtual ~AlsaWrapper(); 17 virtual ~AlsaWrapper();
20 18
21 virtual int DeviceNameHint(int card, const char* iface, void*** hints); 19 virtual int DeviceNameHint(int card, const char* iface, void*** hints);
22 virtual char* DeviceNameGetHint(const void* hint, const char* id); 20 virtual char* DeviceNameGetHint(const void* hint, const char* id);
23 virtual int DeviceNameFreeHint(void** hints); 21 virtual int DeviceNameFreeHint(void** hints);
24 virtual int CardNext(int* rcard); 22 virtual int CardNext(int* rcard);
25 23
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 68
71 virtual const char* StrError(int errnum); 69 virtual const char* StrError(int errnum);
72 70
73 private: 71 private:
74 int ConfigureHwParams(snd_pcm_t* handle, snd_pcm_hw_params_t* hw_params, 72 int ConfigureHwParams(snd_pcm_t* handle, snd_pcm_hw_params_t* hw_params,
75 snd_pcm_format_t format, snd_pcm_access_t access, 73 snd_pcm_format_t format, snd_pcm_access_t access,
76 unsigned int channels, unsigned int rate, 74 unsigned int channels, unsigned int rate,
77 int soft_resample, unsigned int latency); 75 int soft_resample, unsigned int latency);
78 DISALLOW_COPY_AND_ASSIGN(AlsaWrapper); 76 DISALLOW_COPY_AND_ASSIGN(AlsaWrapper);
79 }; 77 };
80
81 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/linux/alsa_util.cc ('k') | media/audio/linux/alsa_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698