From 8b0dcc549f7ec1d1db9a42a0eb1dea2f7df4255d Mon Sep 17 00:00:00 2001 From: Milan Nikolic Date: Thu, 7 Dec 2017 17:04:09 +0100 Subject: [PATCH] Proper Music type --- raylib/audio.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/raylib/audio.go b/raylib/audio.go index 73eda11..9cf51a1 100644 --- a/raylib/audio.go +++ b/raylib/audio.go @@ -66,7 +66,18 @@ func newSoundFromPointer(ptr unsafe.Pointer) Sound { // Music type (file streaming from memory) // NOTE: Anything longer than ~10 seconds should be streamed -type Music C.Music +type Music struct { + CtxType uint32 + _ [4]byte + ctxOgg unsafe.Pointer + ctxFlac unsafe.Pointer + ctxXm unsafe.Pointer + ctxMod unsafe.Pointer + Stream AudioStream + LoopCount int32 + TotalSamples uint32 + SamplesLeft uint32 +} // AudioStream type // NOTE: Useful to create custom audio streams not bound to a specific file