Open rhdunn opened 7 years ago
Another option is to use the waveOUT API which is available on older Windows versions too. https://gitlab.com/mseide-msegui/pcaudiolib/blob/mse/src/waveout.c https://gitlab.com/mseide-msegui/pcaudiolib/blob/mse/src/audio.c It will be activated by the NO_XAUDIO2 define. Binaries are here: https://sourceforge.net/projects/mseuniverse/files/eSpeakNG/ rename "libespeak-ngwo.dll" to "libespeak-ng.dll" if you want to use it with "espeak-ng.exe".
Use LoadLibrary/GetProcAddress instead of linking to xaudio2.lib in
create_xaudio2_object
to support returning NULL if the XAudio2 DLL is not present.See https://github.com/rhdunn/espeak/issues/98.
References: