Go to the source code of this file.
Defines | |
| #define | AUDIO_H |
| #define | CHANNELS_MONO 1 |
| #define | CHANNELS_STEREO 2 |
| #define | SAMPLE_SIZE_8_BITS 8 |
| #define | SAMPLE_SIZE_16_BITS 16 |
| #define | SAMPLING_RATE_8KHz 8000 |
| #define | SAMPLING_RATE_44KHz 44100 |
| #define | SAMPLING_RATE_48KHz 48000 |
| #define | SAMPLING_RATE_96KHz 96000 |
| #define | SAMPLING_RATE SAMPLING_RATE_48KHz |
| Sampling rate used by Wr. | |
| #define | STEP (SAMPLING_RATE / SAMPLING_RATE_8KHz) |
| Wr reading increment. | |
| #define | LENGTH (64 * STEP) |
| sequence length | |
Functions | |
| int | OpenAudioDevice (const char *audioDevice) |
| Just opens /dev/dsp and /dev/mixer. | |
| int | SetAudioDevice (int samplingRate, int sampleSize) |
| Sets /dev/dsp's parameters and allocates the buffer. | |
| int | CloseAudioDevice () |
| Simply closes /dev/dsp and /dev/mixer. | |
| int | ReadFromAudioDevice (unsigned char *) |
| Reads LENGTH samples and stores them in the buffer - LENGTH is defined in Audio.h. | |
| int | PlayBuffer (unsigned char *, long) |
| Plays the buffer "buffer" back throug the SoundBlaster. | |
| int | SetMicLevel (int) |
| Sets the IGAIN level, acting on the mixer. | |
| char * | Audio_GetLastError () |
| Returns the last error. | |
|
|
|
|
|
|
|
|
|
|
|
sequence length
|
|
|
|
|
|
|
|
|
Sampling rate used by Wr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Wr reading increment.
|
|
|
Returns the last error.
|
|
|
Simply closes /dev/dsp and /dev/mixer.
|
|
|
Just opens /dev/dsp and /dev/mixer.
|
|
||||||||||||
|
Plays the buffer "buffer" back throug the SoundBlaster.
|
|
|
Reads LENGTH samples and stores them in the buffer - LENGTH is defined in Audio.h.
|
|
||||||||||||
|
Sets /dev/dsp's parameters and allocates the buffer.
|
|
|
Sets the IGAIN level, acting on the mixer.
|
1.3.7