X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=plugins%2Fbeos%2Faout_beos.cpp;h=3fdfa9d811849972cbb3fbe444106d4dee2cd15f;hb=bf9b62a4ea50a2ac124711378775c1def87243ca;hp=29d71565959b51094926fde53ac489a944670d7e;hpb=d4243d5979294ad5de55c48c2d0a888d546f273e;p=vlc diff --git a/plugins/beos/aout_beos.cpp b/plugins/beos/aout_beos.cpp index 29d7156595..3fdfa9d811 100644 --- a/plugins/beos/aout_beos.cpp +++ b/plugins/beos/aout_beos.cpp @@ -2,7 +2,7 @@ * aout_beos.cpp: BeOS audio output ***************************************************************************** * Copyright (C) 1999, 2000, 2001 VideoLAN - * $Id: aout_beos.cpp,v 1.23 2002/02/24 22:06:50 sam Exp $ + * $Id: aout_beos.cpp,v 1.25 2002/07/20 18:01:42 sam Exp $ * * Authors: Jean-Marc Dressler * Samuel Hocevar @@ -39,9 +39,8 @@ extern "C" { -#include - -#include "audio_output.h" +#include +#include } /***************************************************************************** @@ -50,15 +49,14 @@ extern "C" * This structure is part of the audio output thread descriptor. * It describes some BeOS specific variables. *****************************************************************************/ -typedef struct aout_sys_s +struct aout_sys_t { BPushGameSound * p_sound; gs_audio_format * p_format; void * p_buffer; int i_buffer_size; int i_buffer_pos; - -} aout_sys_t; +}; extern "C" { @@ -95,7 +93,7 @@ static int aout_Open( aout_thread_t *p_aout ) p_aout->p_sys = (aout_sys_t*) malloc( sizeof( aout_sys_t ) ); if( p_aout->p_sys == NULL ) { - intf_ErrMsg("error: %s", strerror(ENOMEM) ); + msg_Err( p_aout, "out of memory" ); return( 1 ); } @@ -104,7 +102,7 @@ static int aout_Open( aout_thread_t *p_aout ) if( p_aout->p_sys->p_format == NULL ) { free( p_aout->p_sys ); - intf_ErrMsg("error: cannot allocate memory for gs_audio_format" ); + msg_Err( p_aout, "out of memory" ); return( 1 ); } @@ -124,7 +122,7 @@ static int aout_Open( aout_thread_t *p_aout ) { free( p_aout->p_sys->p_format ); free( p_aout->p_sys ); - intf_ErrMsg("error: cannot allocate memory for BPushGameSound" ); + msg_Err( p_aout, "cannot allocate BPushGameSound" ); return( 1 ); } @@ -132,7 +130,7 @@ static int aout_Open( aout_thread_t *p_aout ) { free( p_aout->p_sys->p_format ); free( p_aout->p_sys ); - intf_ErrMsg("error: cannot allocate memory for BPushGameSound" ); + msg_Err( p_aout, "cannot initialize BPushGameSound" ); return( 1 ); }