Mercurial > sdl-ios-xcode
comparison src/audio/SDL_audiocvt.c @ 1011:4095d9ca23f2
*** empty log message ***
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 13 Dec 2004 08:49:17 +0000 |
parents | 41a59de7f2ed |
children | c9b51268668f |
comparison
equal
deleted
inserted
replaced
1010:2cd32a2d1f11 | 1011:4095d9ca23f2 |
---|---|
484 break; | 484 break; |
485 | 485 |
486 case AUDIO_S8: { | 486 case AUDIO_S8: { |
487 Sint8 *src, *dst, lf, rf, ce; | 487 Sint8 *src, *dst, lf, rf, ce; |
488 | 488 |
489 src = cvt->buf+cvt->len_cvt; | 489 src = (Sint8 *)cvt->buf+cvt->len_cvt; |
490 dst = cvt->buf+cvt->len_cvt*3; | 490 dst = (Sint8 *)cvt->buf+cvt->len_cvt*3; |
491 for ( i=cvt->len_cvt; i; --i ) { | 491 for ( i=cvt->len_cvt; i; --i ) { |
492 dst -= 6; | 492 dst -= 6; |
493 src -= 2; | 493 src -= 2; |
494 lf = src[0]; | 494 lf = src[0]; |
495 rf = src[1]; | 495 rf = src[1]; |
659 break; | 659 break; |
660 | 660 |
661 case AUDIO_S8: { | 661 case AUDIO_S8: { |
662 Sint8 *src, *dst, lf, rf, ce; | 662 Sint8 *src, *dst, lf, rf, ce; |
663 | 663 |
664 src = cvt->buf+cvt->len_cvt; | 664 src = (Sint8 *)cvt->buf+cvt->len_cvt; |
665 dst = cvt->buf+cvt->len_cvt*2; | 665 dst = (Sint8 *)cvt->buf+cvt->len_cvt*2; |
666 for ( i=cvt->len_cvt; i; --i ) { | 666 for ( i=cvt->len_cvt; i; --i ) { |
667 dst -= 4; | 667 dst -= 4; |
668 src -= 2; | 668 src -= 2; |
669 lf = src[0]; | 669 lf = src[0]; |
670 rf = src[1]; | 670 rf = src[1]; |