Home
FAQ
Player
Stage
Gazebo
Contrib
Documentation
Publications
Contributors
Users

Project
Download
Bugs/Feedback
Mailing lists

Radish

Old news
Old stuff

waveaudio.cc File Reference

#include <string.h>
#include <sys/stat.h>
#include <termios.h>
#include <unistd.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/soundcard.h>
#include <math.h>
#include <sys/time.h>
#include <pthread.h>
#include <error.h>
#include <driver.h>
#include <drivertable.h>

Defines

#define DEVICE   "/dev/dsp"

Functions

DriverWaveaudio_Init (ConfigFile *cf, int section)
void Waveaudio_Register (DriverTable *table)

Variables

const double DURATION = 0.1
const int RATE = 16000
const int CHANNELS = 1
const int DEPTH = 8
const int SAMPLES = (int)(DURATION*RATE*CHANNELS)
const int BYTES = SAMPLES*(DEPTH/8)


Define Documentation

#define DEVICE   "/dev/dsp"
 


Function Documentation

Driver* Waveaudio_Init ConfigFile cf,
int  section
 

void Waveaudio_Register DriverTable table  ) 
 


Variable Documentation

const double DURATION = 0.1
 

const int RATE = 16000
 

const int CHANNELS = 1
 

const int DEPTH = 8
 

const int SAMPLES = (int)(DURATION*RATE*CHANNELS)
 

const int BYTES = SAMPLES*(DEPTH/8)
 


Generated on Tue May 3 14:15:45 2005 for Player by doxygen 1.3.6