Use Maybe(^T)

This commit is contained in:
victhor
2026-04-16 11:19:45 +02:00
parent 915a9589cc
commit c9c42f986c

View File

@@ -76,8 +76,8 @@ foreign lib {
Quit :: proc() ---
GetNumAudioDecoders :: proc() -> c.int ---
GetAudioDecoder :: proc(index: c.int) -> cstring ---
CreateMixerDevice :: proc(devid: SDL.AudioDeviceID, spec: ^SDL.AudioSpec) -> ^Mixer ---
CreateMixer :: proc(spec: ^SDL.AudioSpec) -> ^Mixer ---
CreateMixerDevice :: proc(devid: SDL.AudioDeviceID, spec: Maybe(^SDL.AudioSpec)) -> ^Mixer ---
CreateMixer :: proc(spec: Maybe(^SDL.AudioSpec)) -> ^Mixer ---
DestroyMixer :: proc(mixer: ^Mixer) ---
GetMixerProperties :: proc(mixer: ^Mixer) -> SDL.PropertiesID ---
GetMixerFormat :: proc(mixer: ^Mixer, spec: ^SDL.AudioSpec) -> c.bool ---
@@ -145,8 +145,8 @@ foreign lib {
SetTrackFrequencyRatio :: proc(track: ^Track, ratio: c.float) -> c.bool ---
GetTrackFrequencyRatio :: proc(track: ^Track) -> c.float ---
SetTrackOutputChannelMap :: proc(track: ^Track, chmap: [^]c.int, count: c.int) -> c.bool ---
SetTrackStereo :: proc(track: ^Track, gains: ^StereoGains) -> c.bool ---
SetTrack3DPosition :: proc(track: ^Track, position: ^Point3D) -> c.bool ---
SetTrackStereo :: proc(track: ^Track, gains: Maybe(^StereoGains)) -> c.bool ---
SetTrack3DPosition :: proc(track: ^Track, position: Maybe(^Point3D)) -> c.bool ---
GetTrack3DPosition :: proc(track: ^Track, position: ^Point3D) -> c.bool ---
CreateGroup :: proc(mixer: ^Mixer) -> ^Group ---
DestroyGroup :: proc(group: ^Group) ---