Changeset 380:c71736eb9236 in roaraudio


Ignore:
Timestamp:
08/05/08 19:04:36 (16 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added a macro to get the number of samples a output buffer is long

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/include/output.h

    r55 r380  
    1616#define ROAR_OUTPUT_WRITE_SIZE     1024 
    1717 
    18 #define ROAR_OUTPUT_CALC_OUTBUFSIZE(x) (ROAR_OUTPUT_BUFFER_SAMPLES * (x)->channels * ((x)->bits / 8)) 
     18#define ROAR_OUTPUT_CALC_OUTBUFSIZE(x)   (ROAR_OUTPUT_BUFFER_SAMPLES * (x)->channels * ((x)->bits / 8)) 
     19#define ROAR_OUTPUT_CALC_OUTBUFSAMP(x,y) ((y) / ((x)->channels * ((x)->bits / 8))) 
    1920 
    2021void         * g_output_buffer; 
Note: See TracChangeset for help on using the changeset viewer.