Changeset 3626:7fc82747cba3 in roaraudio for libroardsp


Ignore:
Timestamp:
03/04/10 19:37:36 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added functions to request status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroardsp/fader.c

    r3517 r3626  
    7474} 
    7575 
     76int roar_fader_has_started  (struct roar_fader_state * state) { 
     77 if ( state == NULL ) 
     78  return -1; 
     79 
     80 if ( state->start == -1 ) 
     81  return 0; 
     82 
     83 if ( state->start <= state->pcmoffset ) 
     84  return 1; 
     85 
     86 return 0; 
     87} 
     88 
     89int roar_fader_has_ended    (struct roar_fader_state * state) { 
     90 if ( state == NULL ) 
     91  return -1; 
     92 
     93 if ( state->stop == -1 ) 
     94  return 0; 
     95 
     96 if ( state->stop > state->pcmoffset ) 
     97  return 1; 
     98 
     99 return 0; 
     100} 
     101 
    76102int roar_fader_calcpcm_i16n(struct roar_fader_state * state, int16_t * data, size_t frames, int channels) { 
    77103 _CHECK_CALCPCM(); 
Note: See TracChangeset for help on using the changeset viewer.