[xiph-cvs] cvs commit: MTG soundboard.c

Monty xiphmont at xiph.org
Thu Nov 7 01:12:24 PST 2002



xiphmont    02/11/07 04:12:24

  Modified:    .        soundboard.c
  Log:
  One more lapping fix

Revision  Changes    Path
1.9       +1 -4      MTG/soundboard.c

Index: soundboard.c
===================================================================
RCS file: /usr/local/cvsroot/MTG/soundboard.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- soundboard.c	7 Nov 2002 08:51:29 -0000	1.8
+++ soundboard.c	7 Nov 2002 09:12:24 -0000	1.9
@@ -93,7 +93,7 @@
 
 /******** channel mappings.  All hardwired for now... ***********/
 // only OSS stereo builin for now
-#define MAX_OUPUT_CHANNELS 2
+#define MAX_OUPUT_CHANNELS 4
 #define MAX_INPUT_CHANNELS 2
 #define CHANNEL_LABEL_LENGTH 50
 int playback_bufsize=0;
@@ -782,7 +782,6 @@
   t->sample_lapping=t->loop_lapping*44.1;
   if(t->sample_lapping>(t->samplelength-t->sample_loop_start)/2)
     t->sample_lapping=(t->samplelength-t->sample_loop_start)/2;
-  t->sample_lapping=t->samplelength-t->sample_lapping;
 
   t->sample_loop_start=t->loop_start*44.1;
   if(t->sample_loop_start>t->samplelength)
@@ -823,8 +822,6 @@
                                  c->mix.outvol[k][j]);
     }
 }
-
-#define SWAP(x) ( (((x)>>8)&0xff) | (((x)&0xff)<<8))
 
 static inline void _next_sample(int16 *out){
   int i,j,k;

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list