Changeset 1061:b91fe3c6f1e8 in roaraudio for roard/include/output.h


Ignore:
Timestamp:
12/24/08 13:21:36 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

wrote zoh resampler, fixed a bug with output size calulation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/include/output.h

    r972 r1061  
    3838#define ROAR_OUTPUT_WRITE_SIZE     1024 
    3939 
    40 #define ROAR_OUTPUT_CALC_OUTBUFSIZE(x)   (ROAR_OUTPUT_BUFFER_SAMPLES * (x)->channels * ((x)->bits / 8)) 
    41 #define ROAR_OUTPUT_CALC_OUTBUFSAMP(x,y) ((y) / ((x)->channels * ((x)->bits / 8))) 
     40#define ROAR_OUTPUT_CALC_OUTBUFSIZE(x)   (ROAR_OUTPUT_BUFFER_SAMPLES * (x)->channels * ((x)->bits / 8) * ((float)(x)->rate/g_sa->rate)) 
     41#define ROAR_OUTPUT_CALC_OUTBUFSAMP(x,y) ((y) / ((x)->channels * ((x)->bits / 8)*((float)(x)->rate/g_sa->rate))) 
    4242 
    4343void         * g_output_buffer; 
Note: See TracChangeset for help on using the changeset viewer.