All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
oss_audio.c File Reference
#include "config.h"
#include <string.h>
#include <sys/soundcard.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include "libavutil/log.h"
#include "libavcodec/avcodec.h"
#include "avdevice.h"
#include "oss_audio.h"

Go to the source code of this file.


#define CHECK_IOCTL_ERROR(event)


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)
if (err < 0) { \
av_strerror(AVERROR(errno), errbuff, sizeof(errbuff)); \
av_log(s1, AV_LOG_ERROR, #event ": %s\n", errbuff); \
goto fail; \

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 45 of file oss_audio.c.

Referenced by audio_read_header(), and audio_write_header().

int ff_oss_audio_close ( OSSAudioData s)

Definition at line 142 of file oss_audio.c.

Referenced by audio_read_close(), and audio_write_trailer().