 while (1){
        if (in_BUF[Bn].dwFlags==3){ // ̓obt@tɂȂ珈s
            for (n = 0; n < BUF_SIZE; n++){ // 1obt@̓͂M
             	s[t]   = in[Bn][n]/32768.0; // BnԖڂ̓̓obt@f[^Ǎ&K
              	y_L[t] = s[t]; // }CN͂Lcho
	if(hflg==0)y_R[t] =  y_L[t]; // RchóLchƓʑ
              if(hflg==1)y_R[t] = -y_L[t]; // RchóLchƋtʑ

	out[Bn][2*n]   = y_L[t]*32768;  // Lcho͂o̓obt@ɋL^
             	out[Bn][2*n+1] = y_R[t]*32768; // Rcho͂o̓obt@ɋL^
              t = (t+1)%M;  // ̍XV
            }                                                       		// 1obt@̏o͊
            waveOutWrite(  out_hdl, &out_BUF[Bn], sizeof(WAVEHDR)); // o̓obt@foCXɃZbg(Ԍ)
            in_BUF[Bn].dwFlags = 0; // ̓obt@̃tO0ɂ
            waveInPrepareHeader(in_hdl,&in_BUF[Bn],sizeof(WAVEHDR)); // ̓obt@
            waveInAddBuffer(    in_hdl,&in_BUF[Bn],sizeof(WAVEHDR));// ̓obt@foCXɃZbg(Ԍ)
            Bn=(Bn+1)%BUF_NUM; // obt@ԍXV
        }
}                                                               		//C[vI
