public int VerifyValidity()
   		{
      	    boolean ret = header.ckID == FourCC("fmt ") &&

            (data.nChannels == 1 || data.nChannels == 2) &&

             data.nAvgBytesPerSec == ( data.nChannels *
                                       data.nSamplesPerSec *
                                       data.nBitsPerSample    ) / 8   &&

             data.nBlockAlign == ( data.nChannels *
                                   data.nBitsPerSample ) / 8;
            if (ret == true) return 1;
            else return 0;
   		}