FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
oss.c File Reference
#include "config.h"
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/soundcard.h>
#include "libavutil/log.h"
#include "libavcodec/avcodec.h"
#include "avdevice.h"
#include "oss.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_log(s1, AV_LOG_ERROR, #event ": %s\n", av_err2str(AVERROR(errno)));\
goto fail; \
}
#define av_log(a,...)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
Definition: log.h:176
#define AVERROR(e)
Definition: error.h:43
#define fail()
Definition: checkasm.h:117
#define av_err2str(errnum)
Convenience macro, the return value should be used only directly in function arguments but never stan...
Definition: error.h:119
#define s1
Definition: regdef.h:38

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 40 of file oss.c.

Referenced by audio_read_header(), and audio_write_header().

int ff_oss_audio_close ( OSSAudioData s)

Definition at line 135 of file oss.c.

Referenced by audio_read_close(), and audio_write_trailer().