blob: 41e1ceb2146f2c21be51c64303be9e236161f0f7 (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
#ifndef __AUDIOIO_H
#define __AUDIOIO_H
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
extern "C" {
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <stdlib.h>
}
/* AUSUZ should be the amount of data your audio device will accept after it
* has said it is ready to receive data. ie when the device is ready
* for data it
* will accept it without blocking. It must also be a multiple of 128
*/
#ifdef OS_AIX
#define AUSIZ 32768
#endif
#ifdef OS_Linux
extern int AUSIZ;
#endif
#ifdef OS_BSD
#define AUSIZ 32768
#endif
#if defined(OS_IRIX) || defined(OS_IRIX64)
#define AUSIZ 32768
#endif
#ifdef OS_HPUX
#define AUSIZ 4096
#endif
#ifdef OS_SunOS
#define AUSIZ 4096
#endif
#ifdef DEBUG
#define DB(type,cmd) if (debugFlags.type) { cmd ; }
#else
#define DB(type,cmd)
#endif
//Prototypes:
int audioConstruct();
void audioDestruct();
int audioOpen();
void audioClose();
void audioInit(int sampleSize,int frequency, int stereo,int sign, int bigendian);
int mixerOpen();
void mixerClose();
void mixerSetVolume(int volumeLeft,int volumeRight);
int audioWrite(char *buffer, int count);
int getAudioFd();
int getAudioBufferSize();
#endif
|