#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <sys/soundcard.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/select.h>
#include "libavutil/log.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
Go to the source code of this file.
Data Structures | |
struct | AudioData |
Defines | |
#define | AUDIO_BLOCK_SIZE 4096 |
Functions | |
static int | audio_open (AVFormatContext *s1, int is_output, const char *audio_device) |
static int | audio_close (AudioData *s) |
static int | audio_write_header (AVFormatContext *s1) |
static int | audio_write_packet (AVFormatContext *s1, AVPacket *pkt) |
static int | audio_write_trailer (AVFormatContext *s1) |
static int | audio_read_header (AVFormatContext *s1, AVFormatParameters *ap) |
static int | audio_read_packet (AVFormatContext *s1, AVPacket *pkt) |
static int | audio_read_close (AVFormatContext *s1) |
Variables | |
AVInputFormat | oss_demuxer |
AVOutputFormat | oss_muxer |
#define AUDIO_BLOCK_SIZE 4096 |
Definition at line 43 of file oss_audio.c.
static int audio_close | ( | AudioData * | s | ) | [static] |
Definition at line 150 of file oss_audio.c.
static int audio_open | ( | AVFormatContext * | s1, | |
int | is_output, | |||
const char * | audio_device | |||
) | [static] |
Definition at line 56 of file oss_audio.c.
static int audio_read_close | ( | AVFormatContext * | s1 | ) | [static] |
Definition at line 287 of file oss_audio.c.
static int audio_read_header | ( | AVFormatContext * | s1, | |
AVFormatParameters * | ap | |||
) | [static] |
Definition at line 213 of file oss_audio.c.
static int audio_read_packet | ( | AVFormatContext * | s1, | |
AVPacket * | pkt | |||
) | [static] |
Definition at line 244 of file oss_audio.c.
static int audio_write_header | ( | AVFormatContext * | s1 | ) | [static] |
Definition at line 157 of file oss_audio.c.
static int audio_write_packet | ( | AVFormatContext * | s1, | |
AVPacket * | pkt | |||
) | [static] |
Definition at line 174 of file oss_audio.c.
static int audio_write_trailer | ( | AVFormatContext * | s1 | ) | [static] |
Definition at line 203 of file oss_audio.c.
Initial value:
{ "oss", NULL_IF_CONFIG_SMALL("Open Sound System capture"), sizeof(AudioData), NULL, audio_read_header, audio_read_packet, audio_read_close, .flags = AVFMT_NOFILE, }
Definition at line 296 of file oss_audio.c.
Initial value:
{ "oss", NULL_IF_CONFIG_SMALL("Open Sound System playback"), "", "", sizeof(AudioData), CODEC_ID_PCM_S16LE, CODEC_ID_NONE, audio_write_header, audio_write_packet, audio_write_trailer, .flags = AVFMT_NOFILE, }
Definition at line 309 of file oss_audio.c.