Sha256: 4c5d247c89628b15715ab2d912fad8942348a570c2818927fd6247caa42d41c1
Contents?: true
Size: 1.34 KB
Versions: 3
Compression:
Stored size: 1.34 KB
Contents
#include "Gosu_FFI_internal.h" GOSU_FFI_API void Gosu_Channel_destroy(Gosu_Channel* channel) { delete channel; } GOSU_FFI_API bool Gosu_Channel_playing(Gosu_Channel* channel) { return Gosu_translate_exceptions([=] { return channel->channel.playing(); }); } GOSU_FFI_API void Gosu_Channel_pause(Gosu_Channel* channel) { Gosu_translate_exceptions([=] { channel->channel.pause(); }); } GOSU_FFI_API bool Gosu_Channel_paused(Gosu_Channel* channel) { return Gosu_translate_exceptions([=] { return channel->channel.paused(); }); } GOSU_FFI_API void Gosu_Channel_resume(Gosu_Channel* channel) { Gosu_translate_exceptions([=] { channel->channel.resume(); }); } GOSU_FFI_API void Gosu_Channel_stop(Gosu_Channel* channel) { Gosu_translate_exceptions([=] { channel->channel.stop(); }); } GOSU_FFI_API void Gosu_Channel_set_volume(Gosu_Channel* channel, double volume) { Gosu_translate_exceptions([=] { channel->channel.set_volume(volume); }); } GOSU_FFI_API void Gosu_Channel_set_speed(Gosu_Channel* channel, double speed) { Gosu_translate_exceptions([=] { channel->channel.set_speed(speed); }); } GOSU_FFI_API void Gosu_Channel_set_pan(Gosu_Channel* channel, double pan) { Gosu_translate_exceptions([=] { channel->channel.set_pan(pan); }); }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gosu-2.0.0.pre8 | ffi/Gosu_Channel.cpp |
gosu-2.0.0.pre7 | ffi/Gosu_Channel.cpp |
gosu-2.0.0.pre6 | ffi/Gosu_Channel.cpp |