Changeset 2149:3ccece948dfd in roaraudio
- Timestamp:
- 07/24/09 16:13:21 (15 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- roard
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
roard/include/mixer.h
r668 r2149 40 40 int change_vol_32bit (void * output, void * input, int samples, int channels, struct roar_mixer_settings * set); 41 41 42 int need_vol_change (int channels, struct roar_mixer_settings * set); 43 42 44 #endif 43 45 -
roard/mixer.c
r1496 r2149 236 236 } 237 237 238 int need_vol_change (int channels, struct roar_mixer_settings * set) { 239 int i; 240 241 if ( set == NULL || channels < 1 || channels > ROAR_MAX_CHANNELS ) 242 return -1; 243 244 if ( set->rpg_mul != set->rpg_div ) 245 return 1; 246 247 for (i = 0; i < channels; i++) 248 if ( set->mixer[i] != set->scale ) 249 return 1; 250 251 return 0; 252 } 238 253 239 254 //ll
Note: See TracChangeset
for help on using the changeset viewer.