changeset 266:48f8c5df8d7e trunk

[svn] Kill some warnings here -- the other warnings I can't kill yet, as I've not yet been able to decipher the voodoo.
author nenolod
date Thu, 08 Dec 2005 11:44:32 -0800
parents 118aab0618f1
children 38ee4e7f91e6
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	Wed Dec 07 21:33:57 2005 -0800
+++ b/Plugins/Output/crossfade/crossfade.c	Thu Dec 08 11:44:32 2005 -0800
@@ -737,7 +737,7 @@
   fade = 0;
   length = out_len;
   while(length > 0) {
-    gint16 *p = buffer->data + index;
+    gint16 *p = (gint16 *) 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 = buffer->data + buffer->rd_index;
+	data = (gint *) 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 = buffer->data + wr_xedni;
+	gint16     *p = (gint16 *) 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 = buffer->data + wr_xedni;
+	  gint16     *p = (gint16 *) buffer->data + wr_xedni;
 	  gint    index = 0;
 
 	  while(index < blen) {
@@ -2065,7 +2065,7 @@
       fade = 0;
       length = out_len;
       while(length > 0) {
-	gint16 *p = buffer->data + index;
+	gint16 *p = (gint16 *) 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 = buffer->data + index;
+	gint16 *p = (gint16 *) buffer->data + index;
 	gint blen = buffer->size - index;
 	if(blen > length) blen = length;