Changeset 5418:6abd8904a8c8 in roaraudio


Ignore:
Timestamp:
02/20/12 20:41:13 (10 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

updated API for roar_amp_pcm*()

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroardsp/amp.h

    r5381 r5418  
    3939#include "libroardsp.h" 
    4040 
    41 int roar_amp_pcm       (void * output, int bits, void * input, int samples, int channels, struct roar_mixer_settings * set); 
    42 int roar_amp_pcm_8bit  (int8_t  * output, int8_t  * input, int samples, int channels, struct roar_mixer_settings * set); 
    43 int roar_amp_pcm_16bit (int16_t * output, int16_t * input, int samples, int channels, struct roar_mixer_settings * set); 
    44 int roar_amp_pcm_32bit (int32_t * output, int32_t * input, int samples, int channels, struct roar_mixer_settings * set); 
     41int roar_amp_pcm       (void * output, int bits, void * input, size_t samples, int channels, struct roar_mixer_settings * set); 
     42int roar_amp_pcm_8bit  (int8_t  * output, int8_t  * input, size_t samples, int channels, struct roar_mixer_settings * set); 
     43int roar_amp_pcm_16bit (int16_t * output, int16_t * input, size_t samples, int channels, struct roar_mixer_settings * set); 
     44int roar_amp_pcm_32bit (int32_t * output, int32_t * input, size_t samples, int channels, struct roar_mixer_settings * set); 
    4545 
    4646 
  • libroardsp/amp.c

    r5381 r5418  
    2626#include "libroardsp.h" 
    2727 
    28 int roar_amp_pcm(void * output, int bits, void * input, int samples, int channels, struct roar_mixer_settings * set) { 
     28int roar_amp_pcm(void * output, int bits, void * input, size_t samples, int channels, struct roar_mixer_settings * set) { 
    2929 switch (bits) { 
    3030  case  8: return roar_amp_pcm_8bit (output, input, samples, channels, set); break; 
     
    3535} 
    3636 
    37 int roar_amp_pcm_8bit  (int8_t  * output, int8_t  * input, int samples, int channels, struct roar_mixer_settings * set) { 
    38  int    i; 
     37int roar_amp_pcm_8bit  (int8_t  * output, int8_t  * input, size_t samples, int channels, struct roar_mixer_settings * set) { 
     38 size_t   i; 
    3939 register int s; 
    4040 
     
    6161} 
    6262 
    63 int roar_amp_pcm_16bit (int16_t * output, int16_t * input, int samples, int channels, struct roar_mixer_settings * set) { 
    64  int       i; 
     63int roar_amp_pcm_16bit (int16_t * output, int16_t * input, size_t samples, int channels, struct roar_mixer_settings * set) { 
     64 size_t    i; 
    6565 register int s; 
    6666 
     
    8787} 
    8888 
    89 int roar_amp_pcm_32bit (int32_t * output, int32_t * input, int samples, int channels, struct roar_mixer_settings * set) { 
     89int roar_amp_pcm_32bit (int32_t * output, int32_t * input, size_t samples, int channels, struct roar_mixer_settings * set) { 
    9090#ifdef ROAR_NATIVE_INT64 
    91  int       i; 
     91 size_t      i; 
    9292 ROAR_NATIVE_INT64 s; 
    9393 
Note: See TracChangeset for help on using the changeset viewer.