HGE::Channel_SlideTo
Starts sliding a channel volume, panning or pitch.
void Channel_SlideTo(
HCHANNEL channel,
float time,
int volume,
int pan = -101,
float pitch = -1
);
Parameters
- channel
- Handle of an audio channel to affect.
- time
- Time during which the slide should occur.
- volume
- The new volume value, 0..100. -1 = leave current. -2 = fade to 0 and stop the channel.
- pan
- The new panning value, -100..100. -101 = leave current. Optional.
- pitch
- The new pitch multiplier, 1.0 is default pitch. -1.0 = leave current. Optional.
Remarks
Using several calls to Channel_SlideTo you may start simultaneous slides
of different parameters with different timing.
Requirements
Header: hge.h
Import library: hge.lib
See also
Channel_IsSliding
|