I have a problem with WAVEFORMATEX, I know how to assign values to it and everything......for example
First of, I haven't finished the chapter on Direct Sound.....but I've skimmed ahead and don't see this being mentioned again, so I want to know how is are these formats assigned to a sound buffer or sound object. I mean after you fill out all this information how do you assign it to something? Thank you in advance.Code:WAVEFORMATEX waveFormat; waveFormat.wFormatTag = WAVE_FORMAT_PCM; waveFormat.nChannels = 2; waveFormat.nSamplesPerSec = 44100; waveFormat.wBitsPerSample = 16; waveFormat.nBlockAlign = waveFormat.nChannels * (waveFormat.wBitsPerSample/8); waveFormat.nAvgBytesPerSec = waveFormat.nSamplesPerSec * waveFormat.nBlockAlign; waveFormat.cbSize = 0;