# HG changeset patch # User mmu_man # Date 1055696788 0 # Node ID 41d4f3a86c986b8276b099782751a63986309e84 # Parent cc03a75cbde444a569e17099a0bdba769ce769e4 cleanup; BSoundRecorder moved to Experimental namespace diff -r cc03a75cbde4 -r 41d4f3a86c98 beosaudio.cpp --- a/beosaudio.cpp Fri Jun 13 14:28:45 2003 +0000 +++ b/beosaudio.cpp Sun Jun 15 17:06:28 2003 +0000 @@ -33,6 +33,7 @@ #ifdef HAVE_BSOUNDRECORDER #include +using namespace BPrivate::Media::Experimental; #endif /* enable performance checks */ @@ -42,7 +43,6 @@ //#define LATENCY_CHECK #define AUDIO_BLOCK_SIZE 4096 -//#define AUDIO_BLOCK_SIZE 2048 #define AUDIO_BLOCK_COUNT 8 #define AUDIO_BUFFER_SIZE (AUDIO_BLOCK_SIZE*AUDIO_BLOCK_COUNT) @@ -60,7 +60,6 @@ int input_index; sem_id output_sem; int output_index; - int queued; BSoundPlayer *player; #ifdef HAVE_BSOUNDRECORDER BSoundRecorder *recorder; @@ -196,7 +195,6 @@ return -EIO; /* not for now */ #endif s->input_sem = create_sem(AUDIO_BUFFER_SIZE, "ffmpeg_ringbuffer_input"); -// s->input_sem = create_sem(AUDIO_BLOCK_SIZE, "ffmpeg_ringbuffer_input"); if (s->input_sem < B_OK) return -EIO; s->output_sem = create_sem(0, "ffmpeg_ringbuffer_output"); @@ -206,7 +204,6 @@ } s->input_index = 0; s->output_index = 0; - s->queued = 0; create_bapp_if_needed(); s->frame_size = AUDIO_BLOCK_SIZE; /* bump up the priority (avoid realtime though) */