Waitrud Weber’s blog

things and reminders for memories

sounds: windows-make: WAVEHDR

m_data is buffer array and we can use buffer on the windows code.

so, we never avoid this way.


.\sounds-011.h  Tue Apr 06 10:42:14 2021
...
110 :        // Create the wave header for our sound buffer
111 :        m_waveHeader.lpData = m_data;
112 :        m_waveHeader.dwBufferLength = m_bufferSize;
113 :        m_waveHeader.dwFlags = 0;
114 :        m_waveHeader.dwLoops = 0;
115 :
...
160 :    WAVEHDR m_waveHeader; // WAVE header for our sound data
...

 

winmain_001.cpp  Thu Apr 15 15:58:42 2021

626 :	int check_invalidate = 0;
627 :	int stop_thread_onse_second = 0;
628 :	SoundEffect effect;

 We could find "winmm.dll" and compiled it well.

Download simple source code:

https://github.com/WaitrudWeber/source_zip/blob/master/sounds-20210420.zip

 willinglytranslate.blogspot.com