Changeset 4385:37924d2f1dae in roaraudio
- Timestamp:
- 09/14/10 23:44:55 (14 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/ctl.c
r4384 r4385 617 617 618 618 int roar_conv_volume (struct roar_mixer_settings * dst, struct roar_mixer_settings * src, int dstchans, int srcchans) { 619 struct roar_mixer_settings lsrc; 619 620 int i; 620 621 uint_least32_t s; … … 624 625 625 626 if ( dstchans == srcchans ) { 627 if ( dst == src ) 628 return 0; 629 626 630 memcpy(dst, src, sizeof(struct roar_mixer_settings)); 627 631 return 0; 632 } 633 634 if ( dst == src ) { 635 memcpy(&lsrc, src, sizeof(lsrc)); 636 src = &lsrc; 628 637 } 629 638
Note: See TracChangeset
for help on using the changeset viewer.