comparison src/linuxplay.c @ 110:fe104dbd9147 r20-1b7

Import from CVS: tag r20-1b7
author cvs
date Mon, 13 Aug 2007 09:19:45 +0200
parents 0d2f883870bc
children 9b50b4588a93
comparison
equal deleted inserted replaced
109:e183fc049578 110:fe104dbd9147
295 chunk; so, let's ignore this... */ 295 chunk; so, let's ignore this... */
296 if (parsestate.wave.chunklength) 296 if (parsestate.wave.chunklength)
297 parsestate.wave.state = wvSkipChunk; } 297 parsestate.wave.state = wvSkipChunk; }
298 else if (rq) 298 else if (rq)
299 /* align data length to a multiple of datasize; keep additional data 299 /* align data length to a multiple of datasize; keep additional data
300 in "leftover" buffer --- this is neccessary to ensure proper 300 in "leftover" buffer --- this is necessary to ensure proper
301 functioning of the sndcnv... routines */ 301 functioning of the sndcnv... routines */
302 waverequire(data,sz,rq); 302 waverequire(data,sz,rq);
303 return(count); } 303 return(count); }
304 case wvFatalNotify: 304 case wvFatalNotify:
305 warn("Irrecoverable error while parsing WAVE file"); 305 warn("Irrecoverable error while parsing WAVE file");
995 995
996 /* Initialize global parser state information to zero */ 996 /* Initialize global parser state information to zero */
997 memset(&parsestate,0,sizeof(parsestate)); 997 memset(&parsestate,0,sizeof(parsestate));
998 998
999 /* Mainloop: read a block of data, parse its contents, perform all 999 /* Mainloop: read a block of data, parse its contents, perform all
1000 the neccessary conversions and output it to the sound 1000 the necessary conversions and output it to the sound
1001 device; repeat until all data has been processed */ 1001 device; repeat until all data has been processed */
1002 rrtn = length; 1002 rrtn = length;
1003 do { 1003 do {
1004 for (pptr = data; (prtn = parsesndfile((void **)&pptr,&rrtn, 1004 for (pptr = data; (prtn = parsesndfile((void **)&pptr,&rrtn,
1005 (void **)&optr)) > 0; ) 1005 (void **)&optr)) > 0; )