#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 AUDIO_BLOCK_COUNT 8 |
Definition at line 48 of file beosaudio.cpp.
| #define AUDIO_BLOCK_SIZE 4096 |
Definition at line 47 of file beosaudio.cpp.
Referenced by audio_open(), audio_read_packet(), audio_write_packet(), and audioplay_callback().
| #define AUDIO_BUFFER_SIZE (AUDIO_BLOCK_SIZE*AUDIO_BLOCK_COUNT) |
Definition at line 50 of file beosaudio.cpp.
Referenced by audio_open(), audio_read_packet(), audio_write_packet(), and audioplay_callback().
| 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] |
| static int32 bapp_thread | ( | void * | arg | ) | [static] |
| static void create_bapp_if_needed | ( | void | ) | [static] |
| static void destroy_bapp_if_needed | ( | void | ) | [static] |
AVInputFormat audio_beos_demuxer [static] |
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:
{
"audio_beos",
NULL_IF_CONFIG_SMALL("audio grab and output"),
"",
"",
sizeof(AudioData),
CODEC_ID_PCM_S16LE,
CODEC_ID_NONE,
audio_write_header,
audio_write_packet,
audio_write_trailer,
AVFMT_NOFILE,
}
Definition at line 438 of file beosaudio.cpp.
thread_id bapp_thid [static] |
thread_id main_thid [static] |
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().
1.5.8