aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/SoundRecorder/include/soundcard.h
blob: 272cf9049f65b1f8f426e069f76ef2e919a8849c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* by Luis Figueiredo (stdio@netc.pt)
 *
 * file: soundcard.h
 *
 * description: handlers soundcard setup
 *
 * date: 17:00,13-00-2002
 */

#ifndef _SOUNDCARD_H_ 
#define _SOUNDCARD_H_

#include <fcntl.h>
#include <sys/soundcard.h>
#include <stdio.h>
#include <sys/ioctl.h>

#include "debug.h"

struct soundcard_setup {
        int rate;
        char channels;
        int fmt;
};

int soundcard_init(const char *, struct soundcard_setup *);




#endif