comparison music2/nwatowav.cc @ 43:01aa5ddf7dc8

A lot of very minor improvements (deleted some unused variables, and other things like that...)
author thib
date Tue, 24 Mar 2009 19:45:48 +0000
parents 223b71206888
children 15a18fbe6f21
comparison
equal deleted inserted replaced
42:039d813d4cef 43:01aa5ddf7dc8
250 int UseRunLength(void) const { return use_runlength; } 250 int UseRunLength(void) const { return use_runlength; }
251 }; 251 };
252 252
253 template<class NWAI> void NWADecode(const NWAI& info,const char* data, char* outdata, int datasize, int outdatasize) { 253 template<class NWAI> void NWADecode(const NWAI& info,const char* data, char* outdata, int datasize, int outdatasize) {
254 int d[2]; 254 int d[2];
255 int i,j; 255 int i;
256 int shift = 0; 256 int shift = 0;
257 const char* dataend = data+datasize; 257 const char* dataend = data+datasize;
258 /* 最初のデータを読み込む */ 258 /* 最初のデータを読み込む */
259 if (info.Bps() == 8) {d[0] = *data++; datasize--;} 259 if (info.Bps() == 8) {d[0] = *data++; datasize--;}
260 else /* info.Bps() == 16 */ {d[0] = read_little_endian_short(data); data+=2; datasize-=2;} 260 else /* info.Bps() == 16 */ {d[0] = read_little_endian_short(data); data+=2; datasize-=2;}