#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <fcntl.h>
#include <strings.h>
#include <sys/ioctl.h>
#include <sys/soundcard.h>
#include "audio_oss.h"
Go to the source code of this file.
Defines | |
#define | DSP_FRAGMENT (0x7fff0000 | 0x000b) |
Functions | |
int32_t | audio_open_oss (p_audio_pub device) |
int32_t | audio_init_oss (p_audio_pub device) |
int32_t | audio_close_oss (p_audio_pub device) |
void | audio_record_oss (p_audio_pub device, te_audio_segments buffer_segment) |
void | audio_play_oss (p_audio_pub device, te_audio_segments buffer_segment) |
#define DSP_FRAGMENT (0x7fff0000 | 0x000b) |
int32_t audio_close_oss | ( | p_audio_pub | device | ) |
int32_t audio_init_oss | ( | p_audio_pub | device | ) |
Definition at line 91 of file audio_oss.c.
References ts_audio_pub::audio_buffer_raw, AUDIO_BUFFER_SEGMENTS, ts_audio_pub::audio_buffer_size, AUDIO_MONO, ts_audio_pub::buffer_segments, ts_audio_pub::dsp_channels, DSP_FRAGMENT, ts_audio_pub::error_msg_handler, ts_audio_pub::format, ts_audio_pub::fragsize, ts_audio_pub::handle, ts_audio_pub::name, ts_audio_pub::sample_frequency, ts_audio_pub::samples, and ts_audio_pub::samplesize.
int32_t audio_open_oss | ( | p_audio_pub | device | ) |
Definition at line 56 of file audio_oss.c.
References AUDIO_DEVICE_PLAY, AUDIO_DEVICE_RECORD, ts_audio_pub::error_msg_handler, ts_audio_pub::handle, ts_audio_pub::name, and ts_audio_pub::play_record.
void audio_play_oss | ( | p_audio_pub | device, | |
te_audio_segments | buffer_segment | |||
) |
Definition at line 184 of file audio_oss.c.
References ts_audio_pub::audio_buffer_raw, ts_audio_pub::audio_buffer_size, ts_audio_pub::error_msg_handler, and ts_audio_pub::handle.
void audio_record_oss | ( | p_audio_pub | device, | |
te_audio_segments | buffer_segment | |||
) |
Definition at line 171 of file audio_oss.c.
References ts_audio_pub::audio_buffer_raw, ts_audio_pub::audio_buffer_size, ts_audio_pub::error_msg_handler, and ts_audio_pub::handle.