audio

package
v0.0.0-...-cb707ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2020 License: Zlib Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CSFML_VERSION_MAJOR int = 2
View Source
const CSFML_VERSION_MINOR int = 4
View Source
const CSFML_VERSION_PATCH int = 0
View Source
const SfFalse int = 0
View Source
const SfTrue int = 1

Variables

View Source
var SfPaused int = _swig_getsfPaused()
View Source
var SfPlaying int = _swig_getsfPlaying()
View Source
var SfStopped int = _swig_getsfStopped()
View Source
var Swig_escape_always_false bool
View Source
var Swig_escape_val interface{}

Functions

func DeleteSfSoundStreamChunk

func DeleteSfSoundStreamChunk(arg1 SfSoundStreamChunk)

func SfListener_getGlobalVolume

func SfListener_getGlobalVolume() (_swig_ret float32)

func SfListener_setDirection

func SfListener_setDirection(arg1 SfVector3f)

func SfListener_setGlobalVolume

func SfListener_setGlobalVolume(arg1 float32)

func SfListener_setPosition

func SfListener_setPosition(arg1 SfVector3f)

func SfListener_setUpVector

func SfListener_setUpVector(arg1 SfVector3f)

func SfMusic_destroy

func SfMusic_destroy(arg1 Struct_SS_sfMusic)

func SfMusic_getAttenuation

func SfMusic_getAttenuation(arg1 Struct_SS_sfMusic) (_swig_ret float32)

func SfMusic_getChannelCount

func SfMusic_getChannelCount(arg1 Struct_SS_sfMusic) (_swig_ret uint)

func SfMusic_getLoop

func SfMusic_getLoop(arg1 Struct_SS_sfMusic) (_swig_ret int)

func SfMusic_getMinDistance

func SfMusic_getMinDistance(arg1 Struct_SS_sfMusic) (_swig_ret float32)

func SfMusic_getPitch

func SfMusic_getPitch(arg1 Struct_SS_sfMusic) (_swig_ret float32)

func SfMusic_getSampleRate

func SfMusic_getSampleRate(arg1 Struct_SS_sfMusic) (_swig_ret uint)

func SfMusic_getVolume

func SfMusic_getVolume(arg1 Struct_SS_sfMusic) (_swig_ret float32)

func SfMusic_isRelativeToListener

func SfMusic_isRelativeToListener(arg1 Struct_SS_sfMusic) (_swig_ret int)

func SfMusic_pause

func SfMusic_pause(arg1 Struct_SS_sfMusic)

func SfMusic_play

func SfMusic_play(arg1 Struct_SS_sfMusic)

func SfMusic_setAttenuation

func SfMusic_setAttenuation(arg1 Struct_SS_sfMusic, arg2 float32)

func SfMusic_setLoop

func SfMusic_setLoop(arg1 Struct_SS_sfMusic, arg2 int)

func SfMusic_setMinDistance

func SfMusic_setMinDistance(arg1 Struct_SS_sfMusic, arg2 float32)

func SfMusic_setPitch

func SfMusic_setPitch(arg1 Struct_SS_sfMusic, arg2 float32)

func SfMusic_setPlayingOffset

func SfMusic_setPlayingOffset(arg1 Struct_SS_sfMusic, arg2 SfTime)

func SfMusic_setPosition

func SfMusic_setPosition(arg1 Struct_SS_sfMusic, arg2 SfVector3f)

func SfMusic_setRelativeToListener

func SfMusic_setRelativeToListener(arg1 Struct_SS_sfMusic, arg2 int)

func SfMusic_setVolume

func SfMusic_setVolume(arg1 Struct_SS_sfMusic, arg2 float32)

func SfMusic_stop

func SfMusic_stop(arg1 Struct_SS_sfMusic)

func SfSoundBufferRecorder_destroy

func SfSoundBufferRecorder_destroy(arg1 Struct_SS_sfSoundBufferRecorder)

func SfSoundBufferRecorder_getDevice

func SfSoundBufferRecorder_getDevice(arg1 Struct_SS_sfSoundBufferRecorder) (_swig_ret string)

func SfSoundBufferRecorder_getSampleRate

func SfSoundBufferRecorder_getSampleRate(arg1 Struct_SS_sfSoundBufferRecorder) (_swig_ret uint)

func SfSoundBufferRecorder_setDevice

func SfSoundBufferRecorder_setDevice(arg1 Struct_SS_sfSoundBufferRecorder, arg2 string) (_swig_ret int)

func SfSoundBufferRecorder_start

func SfSoundBufferRecorder_start(arg1 Struct_SS_sfSoundBufferRecorder, arg2 uint) (_swig_ret int)

func SfSoundBufferRecorder_stop

func SfSoundBufferRecorder_stop(arg1 Struct_SS_sfSoundBufferRecorder)

func SfSoundBuffer_destroy

func SfSoundBuffer_destroy(arg1 Struct_SS_sfSoundBuffer)

func SfSoundBuffer_getChannelCount

func SfSoundBuffer_getChannelCount(arg1 Struct_SS_sfSoundBuffer) (_swig_ret uint)

func SfSoundBuffer_getSampleCount

func SfSoundBuffer_getSampleCount(arg1 Struct_SS_sfSoundBuffer) (_swig_ret uint64)

func SfSoundBuffer_getSampleRate

func SfSoundBuffer_getSampleRate(arg1 Struct_SS_sfSoundBuffer) (_swig_ret uint)

func SfSoundBuffer_getSamples

func SfSoundBuffer_getSamples(arg1 Struct_SS_sfSoundBuffer) (_swig_ret *int16)

func SfSoundBuffer_saveToFile

func SfSoundBuffer_saveToFile(arg1 Struct_SS_sfSoundBuffer, arg2 string) (_swig_ret int)

func SfSoundRecorder_destroy

func SfSoundRecorder_destroy(arg1 Struct_SS_sfSoundRecorder)

func SfSoundRecorder_getAvailableDevices

func SfSoundRecorder_getAvailableDevices(arg1 *int64) (_swig_ret *string)

func SfSoundRecorder_getChannelCount

func SfSoundRecorder_getChannelCount(arg1 Struct_SS_sfSoundRecorder) (_swig_ret uint)

func SfSoundRecorder_getDefaultDevice

func SfSoundRecorder_getDefaultDevice() (_swig_ret string)

func SfSoundRecorder_getDevice

func SfSoundRecorder_getDevice(arg1 Struct_SS_sfSoundRecorder) (_swig_ret string)

func SfSoundRecorder_getSampleRate

func SfSoundRecorder_getSampleRate(arg1 Struct_SS_sfSoundRecorder) (_swig_ret uint)

func SfSoundRecorder_isAvailable

func SfSoundRecorder_isAvailable() (_swig_ret int)

func SfSoundRecorder_setChannelCount

func SfSoundRecorder_setChannelCount(arg1 Struct_SS_sfSoundRecorder, arg2 uint)

func SfSoundRecorder_setDevice

func SfSoundRecorder_setDevice(arg1 Struct_SS_sfSoundRecorder, arg2 string) (_swig_ret int)

func SfSoundRecorder_setProcessingInterval

func SfSoundRecorder_setProcessingInterval(arg1 Struct_SS_sfSoundRecorder, arg2 SfTime)

func SfSoundRecorder_start

func SfSoundRecorder_start(arg1 Struct_SS_sfSoundRecorder, arg2 uint) (_swig_ret int)

func SfSoundRecorder_stop

func SfSoundRecorder_stop(arg1 Struct_SS_sfSoundRecorder)

func SfSoundStream_destroy

func SfSoundStream_destroy(arg1 Struct_SS_sfSoundStream)

func SfSoundStream_getAttenuation

func SfSoundStream_getAttenuation(arg1 Struct_SS_sfSoundStream) (_swig_ret float32)

func SfSoundStream_getChannelCount

func SfSoundStream_getChannelCount(arg1 Struct_SS_sfSoundStream) (_swig_ret uint)

func SfSoundStream_getLoop

func SfSoundStream_getLoop(arg1 Struct_SS_sfSoundStream) (_swig_ret int)

func SfSoundStream_getMinDistance

func SfSoundStream_getMinDistance(arg1 Struct_SS_sfSoundStream) (_swig_ret float32)

func SfSoundStream_getPitch

func SfSoundStream_getPitch(arg1 Struct_SS_sfSoundStream) (_swig_ret float32)

func SfSoundStream_getSampleRate

func SfSoundStream_getSampleRate(arg1 Struct_SS_sfSoundStream) (_swig_ret uint)

func SfSoundStream_getVolume

func SfSoundStream_getVolume(arg1 Struct_SS_sfSoundStream) (_swig_ret float32)

func SfSoundStream_isRelativeToListener

func SfSoundStream_isRelativeToListener(arg1 Struct_SS_sfSoundStream) (_swig_ret int)

func SfSoundStream_pause

func SfSoundStream_pause(arg1 Struct_SS_sfSoundStream)

func SfSoundStream_play

func SfSoundStream_play(arg1 Struct_SS_sfSoundStream)

func SfSoundStream_setAttenuation

func SfSoundStream_setAttenuation(arg1 Struct_SS_sfSoundStream, arg2 float32)

func SfSoundStream_setLoop

func SfSoundStream_setLoop(arg1 Struct_SS_sfSoundStream, arg2 int)

func SfSoundStream_setMinDistance

func SfSoundStream_setMinDistance(arg1 Struct_SS_sfSoundStream, arg2 float32)

func SfSoundStream_setPitch

func SfSoundStream_setPitch(arg1 Struct_SS_sfSoundStream, arg2 float32)

func SfSoundStream_setPlayingOffset

func SfSoundStream_setPlayingOffset(arg1 Struct_SS_sfSoundStream, arg2 SfTime)

func SfSoundStream_setPosition

func SfSoundStream_setPosition(arg1 Struct_SS_sfSoundStream, arg2 SfVector3f)

func SfSoundStream_setRelativeToListener

func SfSoundStream_setRelativeToListener(arg1 Struct_SS_sfSoundStream, arg2 int)

func SfSoundStream_setVolume

func SfSoundStream_setVolume(arg1 Struct_SS_sfSoundStream, arg2 float32)

func SfSoundStream_stop

func SfSoundStream_stop(arg1 Struct_SS_sfSoundStream)

func SfSound_destroy

func SfSound_destroy(arg1 Struct_SS_sfSound)

func SfSound_getAttenuation

func SfSound_getAttenuation(arg1 Struct_SS_sfSound) (_swig_ret float32)

func SfSound_getLoop

func SfSound_getLoop(arg1 Struct_SS_sfSound) (_swig_ret int)

func SfSound_getMinDistance

func SfSound_getMinDistance(arg1 Struct_SS_sfSound) (_swig_ret float32)

func SfSound_getPitch

func SfSound_getPitch(arg1 Struct_SS_sfSound) (_swig_ret float32)

func SfSound_getVolume

func SfSound_getVolume(arg1 Struct_SS_sfSound) (_swig_ret float32)

func SfSound_isRelativeToListener

func SfSound_isRelativeToListener(arg1 Struct_SS_sfSound) (_swig_ret int)

func SfSound_pause

func SfSound_pause(arg1 Struct_SS_sfSound)

func SfSound_play

func SfSound_play(arg1 Struct_SS_sfSound)

func SfSound_setAttenuation

func SfSound_setAttenuation(arg1 Struct_SS_sfSound, arg2 float32)

func SfSound_setBuffer

func SfSound_setBuffer(arg1 Struct_SS_sfSound, arg2 Struct_SS_sfSoundBuffer)

func SfSound_setLoop

func SfSound_setLoop(arg1 Struct_SS_sfSound, arg2 int)

func SfSound_setMinDistance

func SfSound_setMinDistance(arg1 Struct_SS_sfSound, arg2 float32)

func SfSound_setPitch

func SfSound_setPitch(arg1 Struct_SS_sfSound, arg2 float32)

func SfSound_setPlayingOffset

func SfSound_setPlayingOffset(arg1 Struct_SS_sfSound, arg2 SfTime)

func SfSound_setPosition

func SfSound_setPosition(arg1 Struct_SS_sfSound, arg2 SfVector3f)

func SfSound_setRelativeToListener

func SfSound_setRelativeToListener(arg1 Struct_SS_sfSound, arg2 int)

func SfSound_setVolume

func SfSound_setVolume(arg1 Struct_SS_sfSound, arg2 float32)

func SfSound_stop

func SfSound_stop(arg1 Struct_SS_sfSound)

func Swig_free

func Swig_free(arg1 uintptr)

func Swig_malloc

func Swig_malloc(arg1 int) (_swig_ret uintptr)

Types

type SfInputStream

type SfInputStream interface {
	Swigcptr() uintptr
}

type SfSoundStatus

type SfSoundStatus int

func SfMusic_getStatus

func SfMusic_getStatus(arg1 Struct_SS_sfMusic) (_swig_ret SfSoundStatus)

func SfSoundStream_getStatus

func SfSoundStream_getStatus(arg1 Struct_SS_sfSoundStream) (_swig_ret SfSoundStatus)

func SfSound_getStatus

func SfSound_getStatus(arg1 Struct_SS_sfSound) (_swig_ret SfSoundStatus)

type SfSoundStreamChunk

type SfSoundStreamChunk interface {
	Swigcptr() uintptr
	SwigIsSfSoundStreamChunk()
	SetSamples(arg2 *int16)
	GetSamples() (_swig_ret *int16)
	SetSampleCount(arg2 uint)
	GetSampleCount() (_swig_ret uint)
}

func NewSfSoundStreamChunk

func NewSfSoundStreamChunk() (_swig_ret SfSoundStreamChunk)

type SfTime

type SfTime interface {
	Swigcptr() uintptr
}

func SfMusic_getDuration

func SfMusic_getDuration(arg1 Struct_SS_sfMusic) (_swig_ret SfTime)

func SfMusic_getPlayingOffset

func SfMusic_getPlayingOffset(arg1 Struct_SS_sfMusic) (_swig_ret SfTime)

func SfSoundBuffer_getDuration

func SfSoundBuffer_getDuration(arg1 Struct_SS_sfSoundBuffer) (_swig_ret SfTime)

func SfSoundStream_getPlayingOffset

func SfSoundStream_getPlayingOffset(arg1 Struct_SS_sfSoundStream) (_swig_ret SfTime)

func SfSound_getPlayingOffset

func SfSound_getPlayingOffset(arg1 Struct_SS_sfSound) (_swig_ret SfTime)

type SfVector3f

type SfVector3f interface {
	Swigcptr() uintptr
}

func SfListener_getDirection

func SfListener_getDirection() (_swig_ret SfVector3f)

func SfListener_getPosition

func SfListener_getPosition() (_swig_ret SfVector3f)

func SfListener_getUpVector

func SfListener_getUpVector() (_swig_ret SfVector3f)

func SfMusic_getPosition

func SfMusic_getPosition(arg1 Struct_SS_sfMusic) (_swig_ret SfVector3f)

func SfSoundStream_getPosition

func SfSoundStream_getPosition(arg1 Struct_SS_sfSoundStream) (_swig_ret SfVector3f)

func SfSound_getPosition

func SfSound_getPosition(arg1 Struct_SS_sfSound) (_swig_ret SfVector3f)

type Struct_SS_sfMusic

type Struct_SS_sfMusic interface {
	Swigcptr() uintptr
}

func SfMusic_createFromFile

func SfMusic_createFromFile(arg1 string) (_swig_ret Struct_SS_sfMusic)

func SfMusic_createFromMemory

func SfMusic_createFromMemory(arg1 uintptr, arg2 int64) (_swig_ret Struct_SS_sfMusic)

func SfMusic_createFromStream

func SfMusic_createFromStream(arg1 SfInputStream) (_swig_ret Struct_SS_sfMusic)

type Struct_SS_sfSound

type Struct_SS_sfSound interface {
	Swigcptr() uintptr
}

func SfSound_copy

func SfSound_copy(arg1 Struct_SS_sfSound) (_swig_ret Struct_SS_sfSound)

func SfSound_create

func SfSound_create() (_swig_ret Struct_SS_sfSound)

type Struct_SS_sfSoundBuffer

type Struct_SS_sfSoundBuffer interface {
	Swigcptr() uintptr
}

func SfSoundBufferRecorder_getBuffer

func SfSoundBufferRecorder_getBuffer(arg1 Struct_SS_sfSoundBufferRecorder) (_swig_ret Struct_SS_sfSoundBuffer)

func SfSoundBuffer_copy

func SfSoundBuffer_copy(arg1 Struct_SS_sfSoundBuffer) (_swig_ret Struct_SS_sfSoundBuffer)

func SfSoundBuffer_createFromFile

func SfSoundBuffer_createFromFile(arg1 string) (_swig_ret Struct_SS_sfSoundBuffer)

func SfSoundBuffer_createFromMemory

func SfSoundBuffer_createFromMemory(arg1 uintptr, arg2 int64) (_swig_ret Struct_SS_sfSoundBuffer)

func SfSoundBuffer_createFromSamples

func SfSoundBuffer_createFromSamples(arg1 *int16, arg2 uint64, arg3 uint, arg4 uint) (_swig_ret Struct_SS_sfSoundBuffer)

func SfSoundBuffer_createFromStream

func SfSoundBuffer_createFromStream(arg1 SfInputStream) (_swig_ret Struct_SS_sfSoundBuffer)

func SfSound_getBuffer

func SfSound_getBuffer(arg1 Struct_SS_sfSound) (_swig_ret Struct_SS_sfSoundBuffer)

type Struct_SS_sfSoundBufferRecorder

type Struct_SS_sfSoundBufferRecorder interface {
	Swigcptr() uintptr
}

func SfSoundBufferRecorder_create

func SfSoundBufferRecorder_create() (_swig_ret Struct_SS_sfSoundBufferRecorder)

type Struct_SS_sfSoundRecorder

type Struct_SS_sfSoundRecorder interface {
	Swigcptr() uintptr
}

func SfSoundRecorder_create

func SfSoundRecorder_create(arg1 _swig_fnptr, arg2 _swig_fnptr, arg3 _swig_fnptr, arg4 uintptr) (_swig_ret Struct_SS_sfSoundRecorder)

type Struct_SS_sfSoundStream

type Struct_SS_sfSoundStream interface {
	Swigcptr() uintptr
}

func SfSoundStream_create

func SfSoundStream_create(arg1 _swig_fnptr, arg2 _swig_fnptr, arg3 uint, arg4 uint, arg5 uintptr) (_swig_ret Struct_SS_sfSoundStream)

type SwigcptrSfInputStream

type SwigcptrSfInputStream uintptr

func (SwigcptrSfInputStream) Swigcptr

func (p SwigcptrSfInputStream) Swigcptr() uintptr

type SwigcptrSfSoundStreamChunk

type SwigcptrSfSoundStreamChunk uintptr

func (SwigcptrSfSoundStreamChunk) GetSampleCount

func (arg1 SwigcptrSfSoundStreamChunk) GetSampleCount() (_swig_ret uint)

func (SwigcptrSfSoundStreamChunk) GetSamples

func (arg1 SwigcptrSfSoundStreamChunk) GetSamples() (_swig_ret *int16)

func (SwigcptrSfSoundStreamChunk) SetSampleCount

func (arg1 SwigcptrSfSoundStreamChunk) SetSampleCount(arg2 uint)

func (SwigcptrSfSoundStreamChunk) SetSamples

func (arg1 SwigcptrSfSoundStreamChunk) SetSamples(arg2 *int16)

func (SwigcptrSfSoundStreamChunk) SwigIsSfSoundStreamChunk

func (p SwigcptrSfSoundStreamChunk) SwigIsSfSoundStreamChunk()

func (SwigcptrSfSoundStreamChunk) Swigcptr

func (p SwigcptrSfSoundStreamChunk) Swigcptr() uintptr

type SwigcptrSfTime

type SwigcptrSfTime uintptr

func (SwigcptrSfTime) Swigcptr

func (p SwigcptrSfTime) Swigcptr() uintptr

type SwigcptrSfVector3f

type SwigcptrSfVector3f uintptr

func (SwigcptrSfVector3f) Swigcptr

func (p SwigcptrSfVector3f) Swigcptr() uintptr

type SwigcptrStruct_SS_sfMusic

type SwigcptrStruct_SS_sfMusic uintptr

func (SwigcptrStruct_SS_sfMusic) Swigcptr

func (p SwigcptrStruct_SS_sfMusic) Swigcptr() uintptr

type SwigcptrStruct_SS_sfSound

type SwigcptrStruct_SS_sfSound uintptr

func (SwigcptrStruct_SS_sfSound) Swigcptr

func (p SwigcptrStruct_SS_sfSound) Swigcptr() uintptr

type SwigcptrStruct_SS_sfSoundBuffer

type SwigcptrStruct_SS_sfSoundBuffer uintptr

func (SwigcptrStruct_SS_sfSoundBuffer) Swigcptr

type SwigcptrStruct_SS_sfSoundBufferRecorder

type SwigcptrStruct_SS_sfSoundBufferRecorder uintptr

func (SwigcptrStruct_SS_sfSoundBufferRecorder) Swigcptr

type SwigcptrStruct_SS_sfSoundRecorder

type SwigcptrStruct_SS_sfSoundRecorder uintptr

func (SwigcptrStruct_SS_sfSoundRecorder) Swigcptr

type SwigcptrStruct_SS_sfSoundStream

type SwigcptrStruct_SS_sfSoundStream uintptr

func (SwigcptrStruct_SS_sfSoundStream) Swigcptr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL