source: roaraudio/roard/include/output.h @ 55:c0ff46285a6c

Last change on this file since 55:c0ff46285a6c was 55:c0ff46285a6c, checked in by phi, 16 years ago

changed ROAR_OUTPUT_BUFFER_SAMPLES to 2048 #ifdef DEBUG so we can use strace...

File size: 681 bytes
Line 
1//output.h:
2
3#ifndef _OUTPUT_H_
4#define _OUTPUT_H_
5
6#include <roaraudio.h>
7
8//#define ROAR_OUTPUT_BUFFER_SAMPLES 1024
9//#define ROAR_OUTPUT_BUFFER_SAMPLES 1024
10#ifdef DEBUG
11#define ROAR_OUTPUT_BUFFER_SAMPLES 2048
12#else
13#define ROAR_OUTPUT_BUFFER_SAMPLES 441
14#endif
15
16#define ROAR_OUTPUT_WRITE_SIZE     1024
17
18#define ROAR_OUTPUT_CALC_OUTBUFSIZE(x) (ROAR_OUTPUT_BUFFER_SAMPLES * (x)->channels * ((x)->bits / 8))
19
20void         * g_output_buffer;
21unsigned int   g_output_buffer_len;
22
23int output_buffer_init   (struct roar_audio_info * info);
24int output_buffer_reinit (void);
25int output_buffer_free   (void);
26
27int output_buffer_flush  (DRIVER_USERDATA_T inst, int driver);
28
29#endif
30
31//ll
Note: See TracBrowser for help on using the repository browser.