Module: Frusdl::Low::MIX

Extended by:
FFI::Library
Defined in:
lib/frusdl/low/mix.rb

Defined Under Namespace

Classes: Mix_Chunk, Mix_Music

Constant Summary collapse

MIX_NO_FADING =
0
MIX_FADING_OUT =
1
MIX_FADING_IN =
2
MUS_NONE =
0
MUS_CMD =
1
MUS_WAV =
2
MUS_MOD =
3
MUS_MID =
4
MUS_OGG =
5
MUS_MP3 =
6
MIX_CHANNEL_POST =

skipped Mix_SetPostMix skipped extern Mix_HookMusic skiped Mix_HookMusicFinished skipped Mix_GetMusicHookData(void); skipped Mix_ChannelFinished

-2
# skipped Mix_RegisterEffect
# skipped Mix_UnregisterEffect
# skipped Mix_UnregisterAllEffects 
# define MIX_EFFECTSMAXSPEED  "MIX_EFFECTSMAXSPEED"

Class Method Summary collapse

Class Method Details

.Mix_FadeInChannel(channel, chunk, loops, ms) ⇒ Object



97
98
99
# File 'lib/frusdl/low/mix.rb', line 97

def self.Mix_FadeInChannel(channel, chunk, loops, ms)
  Mix_FadeInChannelTimed(channel,chunk,loops,ms,-1)
end

.Mix_LoadWAV(filename) ⇒ Object



54
55
56
# File 'lib/frusdl/low/mix.rb', line 54

def self.Mix_LoadWAV(filename) 
  Mix_LoadWAV_RW(SDL_RWFromFile(filename, "rb"), 1)
end

.Mix_PlayChannel(channel, chunk, loops) ⇒ Object



86
87
88
# File 'lib/frusdl/low/mix.rb', line 86

def self.Mix_PlayChannel(channel,chunk,loops) 
  Mix_PlayChannelTimed(channel,chunk,loops,-1)
end