From 2276dc7ad067f7af7504783239103c1abd7b4433 Mon Sep 17 00:00:00 2001 From: Vlad-Stefan Harbuz Date: Mon, 7 Feb 2022 13:08:52 +0100 Subject: refactor names from e.g. sdl2::init() to sdl2::SDL_Init() Signed-off-by: Vlad-Stefan Harbuz --- sdl2/mixer/channels.ha | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sdl2/mixer/channels.ha') diff --git a/sdl2/mixer/channels.ha b/sdl2/mixer/channels.ha index 4bf4820..fffccd0 100644 --- a/sdl2/mixer/channels.ha +++ b/sdl2/mixer/channels.ha @@ -1,8 +1,8 @@ use sdl2; -@symbol("Mix_PlayChannelTimed") fn _play_channel_timed( +@symbol("Mix_PlayChannelTimed") fn _Mix_PlayChannelTimed( channel: int, - sample: *chunk, + sample: *Mix_Chunk, loops: int, ticks: int, ) int; @@ -11,10 +11,10 @@ use sdl2; // channel. The sample will play for loops+1 number of times, unless stopped by // halt, or fade out, or setting a new expiration time of less time than it // would have originally taken to play the loops, or closing the mixer. -export fn play_channel( +export fn Mix_PlayChannelTimed( channel: int, - sample: *chunk, + sample: *Mix_Chunk, loops: int, ) (void | sdl2::error) = { - return sdl2::wrapvoid(_play_channel_timed(channel, sample, loops, -1)); + return sdl2::wrapvoid(_Mix_PlayChannelTimed(channel, sample, loops, -1)); }; -- cgit v1.2.3