winapi audio output
问题 I am searching some alternative of pulseaudio for windows. Under linux there is very simple way to output raw sound (with pulseaudio): pa_simple_write(pulse, data, bufferSize, &error); It's work perfect with small buffers, that i send to function in the loop. Under windows i use something like this: void writeAudioBlock(HWAVEOUT hWaveOut, LPSTR block, DWORD size) { WAVEHDR header; ZeroMemory(&header, sizeof(WAVEHDR)); header.dwBufferLength = size; header.lpData = block; waveOutPrepareHeader