Changeset 3626:7fc82747cba3 in roaraudio for libroardsp
- Timestamp:
- 03/04/10 19:37:36 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroardsp/fader.c
r3517 r3626 74 74 } 75 75 76 int 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 89 int 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 76 102 int roar_fader_calcpcm_i16n(struct roar_fader_state * state, int16_t * data, size_t frames, int channels) { 77 103 _CHECK_CALCPCM();
Note: See TracChangeset
for help on using the changeset viewer.