Main Page   Compound List   File List   Compound Members   File Members  

soundbyte.c File Reference

#include "speakfree.h"
#include <sys/dir.h>
#include <sys/file.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <machine/soundcard.h>

Compounds

struct  sound_buf

Defines

#define SoundFileIn   "/dev/audio"
#define SoundFileOut   "/dev/audio"
#define AUDIO_CTLDEV   "/dev/mixer"
#define MAX_GAIN   100

Functions

int soundinit (int iomode)
void soundterm (void)
void sound_open_file_descriptors (int *audio_io, int *audio_ctl)
void soundplay (int len, unsigned char *buf)
void soundplayvol (int value)
void soundrecgain (int value)
void sounddest (int where)
int soundgrab (char *buf, int len)
void soundflush (void)

Variables

int abuf_size
char * devAudioInput = SoundFileIn
char * devAudioOutput = SoundFileOut
char * devAudioControl = AUDIO_CTLDEV
int audiof = -1
int stereo = 0
int Audio_fd
sound_bufsbchain = NULL
sound_bufsbtail = NULL
int neverRelease = FALSE

Define Documentation

#define AUDIO_CTLDEV   "/dev/mixer"
 

#define MAX_GAIN   100
 

#define SoundFileIn   "/dev/audio"
 

#define SoundFileOut   "/dev/audio"
 


Function Documentation

void sound_open_file_descriptors int *    audio_io,
int *    audio_ctl
 

void sounddest int    where
 

void soundflush void   
 

int soundgrab char *    buf,
int    len
 

int soundinit int    iomode
 

void soundplay int    len,
unsigned char *    buf
 

void soundplayvol int    value
 

void soundrecgain int    value
 

void soundterm void   
 


Variable Documentation

int abuf_size [static]
 

LINUX

int Audio_fd [static]
 

int audiof = -1 [static]
 

char * devAudioControl = AUDIO_CTLDEV
 

char* devAudioInput = SoundFileIn
 

char * devAudioOutput = SoundFileOut
 

int neverRelease = FALSE [static]
 

struct sound_buf* sbchain = NULL
 

struct sound_buf * sbtail = NULL
 

int stereo = 0 [static]
 


Generated on Tue Feb 10 08:44:18 2004 for Speak-FreelyforUnix by doxygen1.2.18