Versions in this module Expand all Collapse all v1 v1.251.0 Aug 3, 2022 v1.0.0 Aug 3, 2022 Changes in this version + const CSFML_VERSION_MAJOR + const CSFML_VERSION_MINOR + const CSFML_VERSION_PATCH + const SfFalse + const SfTrue + var SfPaused int = _swig_getsfPaused() + var SfPlaying int = _swig_getsfPlaying() + var SfStopped int = _swig_getsfStopped() + var Swig_escape_always_false bool + var Swig_escape_val interface + func DeleteSfSoundStreamChunk(arg1 SfSoundStreamChunk) + func DeleteSfTimeSpan(arg1 SfTimeSpan) + func SfListener_getGlobalVolume() (_swig_ret float32) + func SfListener_setDirection(arg1 SfVector3f) + func SfListener_setGlobalVolume(arg1 float32) + func SfListener_setPosition(arg1 SfVector3f) + func SfListener_setUpVector(arg1 SfVector3f) + func SfMusic_destroy(arg1 Struct_SS_sfMusic) + func SfMusic_getAttenuation(arg1 Struct_SS_sfMusic) (_swig_ret float32) + func SfMusic_getChannelCount(arg1 Struct_SS_sfMusic) (_swig_ret uint) + func SfMusic_getLoop(arg1 Struct_SS_sfMusic) (_swig_ret int) + func SfMusic_getMinDistance(arg1 Struct_SS_sfMusic) (_swig_ret float32) + func SfMusic_getPitch(arg1 Struct_SS_sfMusic) (_swig_ret float32) + func SfMusic_getSampleRate(arg1 Struct_SS_sfMusic) (_swig_ret uint) + func SfMusic_getVolume(arg1 Struct_SS_sfMusic) (_swig_ret float32) + func SfMusic_isRelativeToListener(arg1 Struct_SS_sfMusic) (_swig_ret int) + func SfMusic_pause(arg1 Struct_SS_sfMusic) + func SfMusic_play(arg1 Struct_SS_sfMusic) + func SfMusic_setAttenuation(arg1 Struct_SS_sfMusic, arg2 float32) + func SfMusic_setLoop(arg1 Struct_SS_sfMusic, arg2 int) + func SfMusic_setLoopPoints(arg1 Struct_SS_sfMusic, arg2 SfTimeSpan) + func SfMusic_setMinDistance(arg1 Struct_SS_sfMusic, arg2 float32) + func SfMusic_setPitch(arg1 Struct_SS_sfMusic, arg2 float32) + func SfMusic_setPlayingOffset(arg1 Struct_SS_sfMusic, arg2 SfTime) + func SfMusic_setPosition(arg1 Struct_SS_sfMusic, arg2 SfVector3f) + func SfMusic_setRelativeToListener(arg1 Struct_SS_sfMusic, arg2 int) + func SfMusic_setVolume(arg1 Struct_SS_sfMusic, arg2 float32) + func SfMusic_stop(arg1 Struct_SS_sfMusic) + func SfSoundBufferRecorder_destroy(arg1 Struct_SS_sfSoundBufferRecorder) + func SfSoundBufferRecorder_getDevice(arg1 Struct_SS_sfSoundBufferRecorder) (_swig_ret string) + func SfSoundBufferRecorder_getSampleRate(arg1 Struct_SS_sfSoundBufferRecorder) (_swig_ret uint) + func SfSoundBufferRecorder_setDevice(arg1 Struct_SS_sfSoundBufferRecorder, arg2 string) (_swig_ret int) + func SfSoundBufferRecorder_start(arg1 Struct_SS_sfSoundBufferRecorder, arg2 uint) (_swig_ret int) + func SfSoundBufferRecorder_stop(arg1 Struct_SS_sfSoundBufferRecorder) + func SfSoundBuffer_destroy(arg1 Struct_SS_sfSoundBuffer) + func SfSoundBuffer_getChannelCount(arg1 Struct_SS_sfSoundBuffer) (_swig_ret uint) + func SfSoundBuffer_getSampleCount(arg1 Struct_SS_sfSoundBuffer) (_swig_ret uint64) + func SfSoundBuffer_getSampleRate(arg1 Struct_SS_sfSoundBuffer) (_swig_ret uint) + func SfSoundBuffer_getSamples(arg1 Struct_SS_sfSoundBuffer) (_swig_ret *int16) + func SfSoundBuffer_saveToFile(arg1 Struct_SS_sfSoundBuffer, arg2 string) (_swig_ret int) + func SfSoundRecorder_destroy(arg1 Struct_SS_sfSoundRecorder) + func SfSoundRecorder_getAvailableDevices(arg1 *int64) (_swig_ret *string) + func SfSoundRecorder_getChannelCount(arg1 Struct_SS_sfSoundRecorder) (_swig_ret uint) + func SfSoundRecorder_getDefaultDevice() (_swig_ret string) + func SfSoundRecorder_getDevice(arg1 Struct_SS_sfSoundRecorder) (_swig_ret string) + func SfSoundRecorder_getSampleRate(arg1 Struct_SS_sfSoundRecorder) (_swig_ret uint) + func SfSoundRecorder_isAvailable() (_swig_ret int) + func SfSoundRecorder_setChannelCount(arg1 Struct_SS_sfSoundRecorder, arg2 uint) + func SfSoundRecorder_setDevice(arg1 Struct_SS_sfSoundRecorder, arg2 string) (_swig_ret int) + func SfSoundRecorder_setProcessingInterval(arg1 Struct_SS_sfSoundRecorder, arg2 SfTime) + func SfSoundRecorder_start(arg1 Struct_SS_sfSoundRecorder, arg2 uint) (_swig_ret int) + func SfSoundRecorder_stop(arg1 Struct_SS_sfSoundRecorder) + func SfSoundStream_destroy(arg1 Struct_SS_sfSoundStream) + func SfSoundStream_getAttenuation(arg1 Struct_SS_sfSoundStream) (_swig_ret float32) + func SfSoundStream_getChannelCount(arg1 Struct_SS_sfSoundStream) (_swig_ret uint) + func SfSoundStream_getLoop(arg1 Struct_SS_sfSoundStream) (_swig_ret int) + func SfSoundStream_getMinDistance(arg1 Struct_SS_sfSoundStream) (_swig_ret float32) + func SfSoundStream_getPitch(arg1 Struct_SS_sfSoundStream) (_swig_ret float32) + func SfSoundStream_getSampleRate(arg1 Struct_SS_sfSoundStream) (_swig_ret uint) + func SfSoundStream_getVolume(arg1 Struct_SS_sfSoundStream) (_swig_ret float32) + func SfSoundStream_isRelativeToListener(arg1 Struct_SS_sfSoundStream) (_swig_ret int) + func SfSoundStream_pause(arg1 Struct_SS_sfSoundStream) + func SfSoundStream_play(arg1 Struct_SS_sfSoundStream) + func SfSoundStream_setAttenuation(arg1 Struct_SS_sfSoundStream, arg2 float32) + func SfSoundStream_setLoop(arg1 Struct_SS_sfSoundStream, arg2 int) + func SfSoundStream_setMinDistance(arg1 Struct_SS_sfSoundStream, arg2 float32) + func SfSoundStream_setPitch(arg1 Struct_SS_sfSoundStream, arg2 float32) + func SfSoundStream_setPlayingOffset(arg1 Struct_SS_sfSoundStream, arg2 SfTime) + func SfSoundStream_setPosition(arg1 Struct_SS_sfSoundStream, arg2 SfVector3f) + func SfSoundStream_setRelativeToListener(arg1 Struct_SS_sfSoundStream, arg2 int) + func SfSoundStream_setVolume(arg1 Struct_SS_sfSoundStream, arg2 float32) + func SfSoundStream_stop(arg1 Struct_SS_sfSoundStream) + func SfSound_destroy(arg1 Struct_SS_sfSound) + func SfSound_getAttenuation(arg1 Struct_SS_sfSound) (_swig_ret float32) + func SfSound_getLoop(arg1 Struct_SS_sfSound) (_swig_ret int) + func SfSound_getMinDistance(arg1 Struct_SS_sfSound) (_swig_ret float32) + func SfSound_getPitch(arg1 Struct_SS_sfSound) (_swig_ret float32) + func SfSound_getVolume(arg1 Struct_SS_sfSound) (_swig_ret float32) + func SfSound_isRelativeToListener(arg1 Struct_SS_sfSound) (_swig_ret int) + func SfSound_pause(arg1 Struct_SS_sfSound) + func SfSound_play(arg1 Struct_SS_sfSound) + func SfSound_setAttenuation(arg1 Struct_SS_sfSound, arg2 float32) + func SfSound_setBuffer(arg1 Struct_SS_sfSound, arg2 Struct_SS_sfSoundBuffer) + func SfSound_setLoop(arg1 Struct_SS_sfSound, arg2 int) + func SfSound_setMinDistance(arg1 Struct_SS_sfSound, arg2 float32) + func SfSound_setPitch(arg1 Struct_SS_sfSound, arg2 float32) + func SfSound_setPlayingOffset(arg1 Struct_SS_sfSound, arg2 SfTime) + func SfSound_setPosition(arg1 Struct_SS_sfSound, arg2 SfVector3f) + func SfSound_setRelativeToListener(arg1 Struct_SS_sfSound, arg2 int) + func SfSound_setVolume(arg1 Struct_SS_sfSound, arg2 float32) + func SfSound_stop(arg1 Struct_SS_sfSound) + func Swig_free(arg1 uintptr) + func Swig_malloc(arg1 int) (_swig_ret uintptr) + type SfInputStream interface + Swigcptr func() uintptr + type SfSoundStatus int + func SfMusic_getStatus(arg1 Struct_SS_sfMusic) (_swig_ret SfSoundStatus) + func SfSoundStream_getStatus(arg1 Struct_SS_sfSoundStream) (_swig_ret SfSoundStatus) + func SfSound_getStatus(arg1 Struct_SS_sfSound) (_swig_ret SfSoundStatus) + type SfSoundStreamChunk interface + GetSampleCount func() (_swig_ret uint) + GetSamples func() (_swig_ret *int16) + SetSampleCount func(arg2 uint) + SetSamples func(arg2 *int16) + SwigIsSfSoundStreamChunk func() + Swigcptr func() uintptr + func NewSfSoundStreamChunk() (_swig_ret SfSoundStreamChunk) + type SfTime interface + Swigcptr func() uintptr + func SfMusic_getDuration(arg1 Struct_SS_sfMusic) (_swig_ret SfTime) + func SfMusic_getPlayingOffset(arg1 Struct_SS_sfMusic) (_swig_ret SfTime) + func SfSoundBuffer_getDuration(arg1 Struct_SS_sfSoundBuffer) (_swig_ret SfTime) + func SfSoundStream_getPlayingOffset(arg1 Struct_SS_sfSoundStream) (_swig_ret SfTime) + func SfSound_getPlayingOffset(arg1 Struct_SS_sfSound) (_swig_ret SfTime) + type SfTimeSpan interface + GetLength func() (_swig_ret SfTime) + GetOffset func() (_swig_ret SfTime) + SetLength func(arg2 SfTime) + SetOffset func(arg2 SfTime) + SwigIsSfTimeSpan func() + Swigcptr func() uintptr + func NewSfTimeSpan() (_swig_ret SfTimeSpan) + func SfMusic_getLoopPoints(arg1 Struct_SS_sfMusic) (_swig_ret SfTimeSpan) + type SfVector3f interface + Swigcptr func() uintptr + func SfListener_getDirection() (_swig_ret SfVector3f) + func SfListener_getPosition() (_swig_ret SfVector3f) + func SfListener_getUpVector() (_swig_ret SfVector3f) + func SfMusic_getPosition(arg1 Struct_SS_sfMusic) (_swig_ret SfVector3f) + func SfSoundStream_getPosition(arg1 Struct_SS_sfSoundStream) (_swig_ret SfVector3f) + func SfSound_getPosition(arg1 Struct_SS_sfSound) (_swig_ret SfVector3f) + type Struct_SS_sfMusic interface + Swigcptr func() uintptr + func SfMusic_createFromFile(arg1 string) (_swig_ret Struct_SS_sfMusic) + func SfMusic_createFromMemory(arg1 uintptr, arg2 int64) (_swig_ret Struct_SS_sfMusic) + func SfMusic_createFromStream(arg1 SfInputStream) (_swig_ret Struct_SS_sfMusic) + type Struct_SS_sfSound interface + Swigcptr func() uintptr + func SfSound_copy(arg1 Struct_SS_sfSound) (_swig_ret Struct_SS_sfSound) + func SfSound_create() (_swig_ret Struct_SS_sfSound) + type Struct_SS_sfSoundBuffer interface + Swigcptr func() uintptr + func SfSoundBufferRecorder_getBuffer(arg1 Struct_SS_sfSoundBufferRecorder) (_swig_ret Struct_SS_sfSoundBuffer) + func SfSoundBuffer_copy(arg1 Struct_SS_sfSoundBuffer) (_swig_ret Struct_SS_sfSoundBuffer) + func SfSoundBuffer_createFromFile(arg1 string) (_swig_ret Struct_SS_sfSoundBuffer) + func SfSoundBuffer_createFromMemory(arg1 uintptr, arg2 int64) (_swig_ret Struct_SS_sfSoundBuffer) + func SfSoundBuffer_createFromSamples(arg1 *int16, arg2 uint64, arg3 uint, arg4 uint) (_swig_ret Struct_SS_sfSoundBuffer) + func SfSoundBuffer_createFromStream(arg1 SfInputStream) (_swig_ret Struct_SS_sfSoundBuffer) + func SfSound_getBuffer(arg1 Struct_SS_sfSound) (_swig_ret Struct_SS_sfSoundBuffer) + type Struct_SS_sfSoundBufferRecorder interface + Swigcptr func() uintptr + func SfSoundBufferRecorder_create() (_swig_ret Struct_SS_sfSoundBufferRecorder) + type Struct_SS_sfSoundRecorder interface + Swigcptr func() uintptr + func SfSoundRecorder_create(arg1 _swig_fnptr, arg2 _swig_fnptr, arg3 _swig_fnptr, arg4 uintptr) (_swig_ret Struct_SS_sfSoundRecorder) + type Struct_SS_sfSoundStream interface + Swigcptr func() uintptr + func SfSoundStream_create(arg1 _swig_fnptr, arg2 _swig_fnptr, arg3 uint, arg4 uint, arg5 uintptr) (_swig_ret Struct_SS_sfSoundStream) + type SwigcptrSfInputStream uintptr + func (p SwigcptrSfInputStream) Swigcptr() uintptr + type SwigcptrSfSoundStreamChunk uintptr + func (arg1 SwigcptrSfSoundStreamChunk) GetSampleCount() (_swig_ret uint) + func (arg1 SwigcptrSfSoundStreamChunk) GetSamples() (_swig_ret *int16) + func (arg1 SwigcptrSfSoundStreamChunk) SetSampleCount(arg2 uint) + func (arg1 SwigcptrSfSoundStreamChunk) SetSamples(arg2 *int16) + func (p SwigcptrSfSoundStreamChunk) SwigIsSfSoundStreamChunk() + func (p SwigcptrSfSoundStreamChunk) Swigcptr() uintptr + type SwigcptrSfTime uintptr + func (p SwigcptrSfTime) Swigcptr() uintptr + type SwigcptrSfTimeSpan uintptr + func (arg1 SwigcptrSfTimeSpan) GetLength() (_swig_ret SfTime) + func (arg1 SwigcptrSfTimeSpan) GetOffset() (_swig_ret SfTime) + func (arg1 SwigcptrSfTimeSpan) SetLength(arg2 SfTime) + func (arg1 SwigcptrSfTimeSpan) SetOffset(arg2 SfTime) + func (p SwigcptrSfTimeSpan) SwigIsSfTimeSpan() + func (p SwigcptrSfTimeSpan) Swigcptr() uintptr + type SwigcptrSfVector3f uintptr + func (p SwigcptrSfVector3f) Swigcptr() uintptr + type SwigcptrStruct_SS_sfMusic uintptr + func (p SwigcptrStruct_SS_sfMusic) Swigcptr() uintptr + type SwigcptrStruct_SS_sfSound uintptr + func (p SwigcptrStruct_SS_sfSound) Swigcptr() uintptr + type SwigcptrStruct_SS_sfSoundBuffer uintptr + func (p SwigcptrStruct_SS_sfSoundBuffer) Swigcptr() uintptr + type SwigcptrStruct_SS_sfSoundBufferRecorder uintptr + func (p SwigcptrStruct_SS_sfSoundBufferRecorder) Swigcptr() uintptr + type SwigcptrStruct_SS_sfSoundRecorder uintptr + func (p SwigcptrStruct_SS_sfSoundRecorder) Swigcptr() uintptr + type SwigcptrStruct_SS_sfSoundStream uintptr + func (p SwigcptrStruct_SS_sfSoundStream) Swigcptr() uintptr Other modules containing this package github.com/telroshan/go-sfml/v2