OpenTTD
Functions
mixer.h File Reference

Functions to mix sound samples. More...

Go to the source code of this file.

Functions

bool MxInitialize (uint rate)
 
void MxMixSamples (void *buffer, uint samples)
 
MixerChannelMxAllocateChannel ()
 
void MxSetChannelRawSrc (MixerChannel *mc, int8 *mem, size_t size, uint rate, bool is16bit)
 
void MxSetChannelVolume (MixerChannel *mc, uint volume, float pan)
 Set volume and pan parameters for a sound. More...
 
void MxActivateChannel (MixerChannel *)
 

Detailed Description

Functions to mix sound samples.

Definition in file mixer.h.

Function Documentation

◆ MxSetChannelVolume()

void MxSetChannelVolume ( MixerChannel mc,
uint  volume,
float  pan 
)

Set volume and pan parameters for a sound.

Parameters
mcMixerChannel to set
volumeVolume level for sound, range is 0..16384
panPan position for sound, range is 0..1

Definition at line 198 of file mixer.cpp.