1 KIRQL irql; 2 KAFFINITY affinity; 3 4 #include <pshpack1.h> 5 typedef struct 6 { 7 unsigned char rID[4] ; //4 0 8 unsigned int rLen ; //4 4 9 unsigned char wID[4] ; //4 8 10 unsigned char fID[4] ; //4 12 11 unsigned int fLen ; //4 16 12 unsigned short wFormatTag ; //2 18 13 unsigned short nChannels ; //2 20 14 unsigned int nSamplesPerSec ; //2 22 15 unsigned int nAvgBytesPerSec ; //2 24 16 unsigned short nBlockAlign ; //2 26 17 unsigned short FormatSpecific ; //2 28 18 unsigned char dID[4] ; //4 30 19 unsigned int dLen ; 20 unsigned char* data; 21 }WAVE_HDR; 22 #include <poppack.h> 23 24 void sb16_play(WAVE_HDR* wave); 25 void dump_wav(WAVE_HDR* wave); 26 BOOLEAN playRoutine(PKINTERRUPT Interrupt,PVOID ServiceContext); 27