You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Go version: 1.20.4
Go-SDL2 version: v0.4.35
SDL2 version: 2.0.20+dfsg-2build1
OS: Ubuntu 22.04
Architecture: 64 Bit
I am trying to follow the example on how to play audio, and the example works fine, but I would really want to use another format than 8 bit sound. How do I use 32 bit floating point?:
I tried simply changing all references to the type C.Uint8 with C.float as this should be the 32 bit floating point number in C, and then i changed the Format field in the AudioSpec to sdl.AUDIO_F32SYS, but unfortunately it does not work, then I just get this segfault when running the program:
Go version: 1.20.4
Go-SDL2 version: v0.4.35
SDL2 version: 2.0.20+dfsg-2build1
OS: Ubuntu 22.04
Architecture: 64 Bit
I am trying to follow the example on how to play audio, and the example works fine, but I would really want to use another format than 8 bit sound. How do I use 32 bit floating point?:
I tried simply changing all references to the type
C.Uint8
withC.float
as this should be the 32 bit floating point number in C, and then i changed theFormat
field in theAudioSpec
tosdl.AUDIO_F32SYS
, but unfortunately it does not work, then I just get this segfault when running the program:I have not work with Cgo before so I might be missing something completely trivial. Any help here would be awesome :)
The text was updated successfully, but these errors were encountered: