oss_audio.c File Reference
#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 "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include "libavcodec/avcodec.h"
#include "avdevice.h"
#include "libavformat/internal.h"
Include dependency graph for oss_audio.c:

Go to the source code of this file.

Data Structures

struct  AudioData
 Audio buffer used for intermediate storage between conversion phases. More...
 

Macros

#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)
 
static int audio_read_packet (AVFormatContext *s1, AVPacket *pkt)
 
static int audio_read_close (AVFormatContext *s1)
 

Macro Definition Documentation

#define AUDIO_BLOCK_SIZE   4096

Definition at line 44 of file oss_audio.c.

Referenced by audio_open(), and audio_write_packet().

Function Documentation

static int audio_close ( AudioData s)
static

Definition at line 148 of file oss_audio.c.

Referenced by audio_read_close(), and audio_write_trailer().

static int audio_open ( AVFormatContext s1,
int  is_output,
const char *  audio_device 
)
static

Definition at line 58 of file oss_audio.c.

Referenced by audio_read_header(), and audio_write_header().

static int audio_read_close ( AVFormatContext s1)
static

Definition at line 278 of file oss_audio.c.

static int audio_read_header ( AVFormatContext s1)
static

Definition at line 209 of file oss_audio.c.

Referenced by audio_read_close().

static int audio_read_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 235 of file oss_audio.c.

Referenced by audio_read_close().

static int audio_write_header ( AVFormatContext s1)
static

Definition at line 155 of file oss_audio.c.

Referenced by audio_read_close().

static int audio_write_packet ( AVFormatContext s1,
AVPacket pkt 
)
static

Definition at line 172 of file oss_audio.c.

Referenced by audio_read_close().

static int audio_write_trailer ( AVFormatContext s1)
static

Definition at line 199 of file oss_audio.c.

Referenced by audio_read_close().