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

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

Issue 3299005: Implement audio recording for Linux via ALSA. (Closed)
Patch Set: . Created 10 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
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_AUDIO_LINUX_ALSA_UTIL_H_
6 #define MEDIA_AUDIO_LINUX_ALSA_UTIL_H_
7
8 #include <alsa/asoundlib.h>
9
10 class AlsaWrapper;
11
12 namespace alsa_util {
13
14 snd_pcm_format_t BitsToFormat(int bits_per_sample);
15
16 snd_pcm_t* OpenCaptureDevice(AlsaWrapper* wrapper,
17 const char* device_name,
18 int channels,
19 int sample_rate,
20 snd_pcm_format_t pcm_format,
21 int latency_us);
22
23 snd_pcm_t* OpenPlaybackDevice(AlsaWrapper* wrapper,
24 const char* device_name,
25 int channels,
26 int sample_rate,
27 snd_pcm_format_t pcm_format,
28 int latency_us);
29
30 int CloseDevice(AlsaWrapper* wrapper, snd_pcm_t* handle);
31
32 }
33
34 #endif // MEDIA_AUDIO_LINUX_ALSA_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698