Mercurial > audlegacy
changeset 267:38ee4e7f91e6 trunk
[svn] revert changes -- broke the plugin :/
author | nenolod |
---|---|
date | Thu, 08 Dec 2005 11:47:13 -0800 |
parents | 48f8c5df8d7e |
children | 1368faba73c9 |
files | Plugins/Output/crossfade/crossfade.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Output/crossfade/crossfade.c Thu Dec 08 11:44:32 2005 -0800 +++ b/Plugins/Output/crossfade/crossfade.c Thu Dec 08 11:47:13 2005 -0800 @@ -737,7 +737,7 @@ fade = 0; length = out_len; while(length > 0) { - gint16 *p = (gint16 *) buffer->data + index; + gint16 *p = buffer->data + index; gint blen = buffer->size - index; if(blen > length) blen = length; @@ -1697,7 +1697,7 @@ /* write length bytes to the device */ length_bak = length; while(length > 0) { - data = (gint *) buffer->data + buffer->rd_index; + data = buffer->data + buffer->rd_index; blen = buffer->size - buffer->rd_index; if(blen > length) blen = length; @@ -1918,7 +1918,7 @@ while(length > 0) { gint wr_xedni = (buffer->rd_index + buffer->used-1) % buffer->size + 1; gint blen = MIN(length, wr_xedni); - gint16 *p = (gint16 *) buffer->data + wr_xedni; + gint16 *p = buffer->data + wr_xedni; gint index = 0; while(index < blen) { @@ -1948,7 +1948,7 @@ while(buffer->used > 0) { gint wr_xedni = (buffer->rd_index + buffer->used-1) % buffer->size + 1; gint blen = MIN(buffer->used, wr_xedni); - gint16 *p = (gint16 *) buffer->data + wr_xedni; + gint16 *p = buffer->data + wr_xedni; gint index = 0; while(index < blen) { @@ -2065,7 +2065,7 @@ fade = 0; length = out_len; while(length > 0) { - gint16 *p = (gint16 *) buffer->data + index; + gint16 *p = buffer->data + index; gint blen = buffer->size - index; if(blen > length) blen = length; @@ -2084,7 +2084,7 @@ fade = 0; length = in_len; while(length > 0) { - gint16 *p = (gint16 *) buffer->data + index; + gint16 *p = buffer->data + index; gint blen = buffer->size - index; if(blen > length) blen = length;