libavdevice/beosaudio.cpp File Reference

#include <signal.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/time.h>
#include <Application.h>
#include <SoundPlayer.h>
#include "libavformat/avformat.h"

Go to the source code of this file.

Data Structures

struct  AudioData

Defines

#define AUDIO_BLOCK_SIZE   4096
#define AUDIO_BLOCK_COUNT   8
#define AUDIO_BUFFER_SIZE   (AUDIO_BLOCK_SIZE*AUDIO_BLOCK_COUNT)

Functions

static int32 bapp_thread (void *arg)
static void create_bapp_if_needed (void)
static void destroy_bapp_if_needed (void)
static void audioplay_callback (void *cookie, void *buffer, size_t bufferSize, const media_raw_audio_format &format)
static int audio_open (AudioData *s, 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)
int audio_init (void)

Variables

static thread_id main_thid
static thread_id bapp_thid
static int own_BApp_created = 0
static int refcount = 0
static AVInputFormat audio_beos_demuxer
AVOutputFormat audio_beos_muxer


Define Documentation

#define AUDIO_BLOCK_COUNT   8

Definition at line 48 of file beosaudio.cpp.

#define AUDIO_BLOCK_SIZE   4096

#define AUDIO_BUFFER_SIZE   (AUDIO_BLOCK_SIZE*AUDIO_BLOCK_COUNT)


Function Documentation

static int audio_close ( AudioData s  )  [static]

Definition at line 264 of file beosaudio.cpp.

Referenced by audio_read_close(), and audio_write_trailer().

int audio_init ( void   ) 

Definition at line 458 of file beosaudio.cpp.

static int audio_open ( AudioData s,
int  is_output,
const char *  audio_device 
) [static]

Definition at line 188 of file beosaudio.cpp.

Referenced by audio_read_header(), and audio_write_header().

static int audio_read_close ( AVFormatContext s1  )  [static]

Definition at line 417 of file beosaudio.cpp.

static int audio_read_header ( AVFormatContext s1,
AVFormatParameters ap 
) [static]

Definition at line 349 of file beosaudio.cpp.

static int audio_read_packet ( AVFormatContext s1,
AVPacket pkt 
) [static]

Definition at line 379 of file beosaudio.cpp.

static int audio_write_header ( AVFormatContext s1  )  [static]

Definition at line 285 of file beosaudio.cpp.

static int audio_write_packet ( AVFormatContext s1,
AVPacket pkt 
) [static]

Definition at line 300 of file beosaudio.cpp.

static int audio_write_trailer ( AVFormatContext s1  )  [static]

Definition at line 339 of file beosaudio.cpp.

static void audioplay_callback ( void *  cookie,
void *  buffer,
size_t  bufferSize,
const media_raw_audio_format &  format 
) [static]

Definition at line 114 of file beosaudio.cpp.

Referenced by audio_open().

static int32 bapp_thread ( void *  arg  )  [static]

Definition at line 79 of file beosaudio.cpp.

Referenced by create_bapp_if_needed().

static void create_bapp_if_needed ( void   )  [static]

Definition at line 91 of file beosaudio.cpp.

Referenced by audio_open().

static void destroy_bapp_if_needed ( void   )  [static]

Definition at line 104 of file beosaudio.cpp.

Referenced by audio_close().


Variable Documentation

Initial value:

 {
    "audio_beos",
    NULL_IF_CONFIG_SMALL("audio grab and output"),
    sizeof(AudioData),
    NULL,
    audio_read_header,
    audio_read_packet,
    audio_read_close,
    NULL,
    NULL,
    AVFMT_NOFILE,
}

Definition at line 425 of file beosaudio.cpp.

Initial value:

Definition at line 438 of file beosaudio.cpp.

thread_id bapp_thid [static]

Definition at line 74 of file beosaudio.cpp.

Referenced by create_bapp_if_needed().

thread_id main_thid [static]

Definition at line 73 of file beosaudio.cpp.

Referenced by audio_init().

int own_BApp_created = 0 [static]

Definition at line 75 of file beosaudio.cpp.

Referenced by bapp_thread(), create_bapp_if_needed(), and destroy_bapp_if_needed().

int refcount = 0 [static]

Definition at line 76 of file beosaudio.cpp.

Referenced by create_bapp_if_needed(), and destroy_bapp_if_needed().


Generated on Fri Oct 26 02:36:54 2012 for FFmpeg by  doxygen 1.5.8