aboutsummaryrefslogtreecommitdiff
path: root/sdl2/mixer/channels.ha
diff options
context:
space:
mode:
authorVlad-Stefan Harbuz <vlad@vladh.net>2022-02-07 13:08:52 +0100
committerDrew DeVault <sir@cmpwn.com>2022-02-07 18:56:08 +0100
commit2276dc7ad067f7af7504783239103c1abd7b4433 (patch)
tree20f2f98f4af8b2ff0efeb3b15f1a26e09702e908 /sdl2/mixer/channels.ha
parentcorrect indentation (diff)
downloadhare-chip8-2276dc7ad067f7af7504783239103c1abd7b4433.tar.gz
refactor names from e.g. sdl2::init() to sdl2::SDL_Init()
Signed-off-by: Vlad-Stefan Harbuz <vlad@vladh.net>
Diffstat (limited to 'sdl2/mixer/channels.ha')
-rw-r--r--sdl2/mixer/channels.ha10
1 files changed, 5 insertions, 5 deletions
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));
};