Libav
Macros | Functions
oss_audio.c File Reference
#include "config.h"
#include <string.h>
#include <sys/soundcard.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include "libavutil/log.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "oss_audio.h"

Go to the source code of this file.

Macros

#define CHECK_IOCTL_ERROR(event)
 

Functions

int ff_oss_audio_open (AVFormatContext *s1, int is_output, const char *audio_device)
 
int ff_oss_audio_close (OSSAudioData *s)
 

Macro Definition Documentation

#define CHECK_IOCTL_ERROR (   event)
Value:
if (err < 0) { \
av_strerror(AVERROR(errno), errbuff, sizeof(errbuff)); \
av_log(s1, AV_LOG_ERROR, #event ": %s\n", errbuff); \
goto fail; \
}
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:123
#define AVERROR(e)
Definition: error.h:43
void av_log(void *avcl, int level, const char *fmt,...)
Definition: log.c:169
int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
Put a description of the AVERROR code errnum in errbuf.
Definition: error.c:23

Referenced by ff_oss_audio_open().

Function Documentation

int ff_oss_audio_open ( AVFormatContext s1,
int  is_output,
const char *  audio_device 
)

Definition at line 44 of file oss_audio.c.

Referenced by audio_read_header(), and audio_write_header().

int ff_oss_audio_close ( OSSAudioData s)

Definition at line 135 of file oss_audio.c.

Referenced by audio_read_close(), and audio_write_trailer().