spx icon indicating copy to clipboard operation
spx copied to clipboard

Unable to run a 'Hello World' demo on the Windows platform, but it runs successfully on the Mac platform.

Open motongxue opened this issue 1 year ago • 3 comments

Unable to run a 'Hello World' demo on the Windows platform, but it runs successfully on the Mac platform. The result on Windows is as follows: windows result The Go version is: go1.20.4 for windows/386.

motongxue avatar Dec 26 '23 13:12 motongxue

me too.

abbychau avatar Feb 08 '24 09:02 abbychau

need install OpenAL32, https://openal.org/

Unable to run a 'Hello World' demo on the Windows platform, but it runs successfully on the Mac platform. The result on Windows is as follows: windows result The Go version is: go1.20.4 for windows/386.

sunqirui1987 avatar Mar 18 '24 07:03 sunqirui1987

Because the record function of the window environment depends on the capabilities provided by Openal. ``var ( modOpenAL32 = syscall. NewLazyDLL("OpenAL32.dll")

procalcCaptureCloseDevice = modOpenAL32.NewProc("alcCaptureCloseDevice") procalcCaptureOpenDevice = modOpenAL32.NewProc("alcCaptureOpenDevice") procalcCaptureSamples = modOpenAL32.NewProc("alcCaptureSamples") procalcCaptureStart = modOpenAL32.NewProc("alcCaptureStart") procalcCaptureStop = modOpenAL32.NewProc("alcCaptureStop") procalcCloseDevice = modOpenAL32.NewProc("alcCloseDevice") procalcCreateContext = modOpenAL32.NewProc("alcCreateContext") procalcGetError = modOpenAL32.NewProc("alcGetError") procalcOpenDevice = modOpenAL32.NewProc("alcOpenDevice") )``

sunqirui1987 avatar Mar 18 '24 07:03 sunqirui1987