# mixer.h

Go to the documentation of this file.

    00001 /* $Id: mixer.h 10673 2007-07-24 17:01:23Z rubidium $ */
    00002
    00005 #ifndef MIXER_H
    00006 #define MIXER_H
    00007
    00008 struct MixerChannel;
    00009
    00010 enum {
    00011   MX_AUTOFREE = 1,
    00012 //  MX_8BIT = 2,
    00013 //  MX_STEREO = 4,
    00014 //  MX_UNSIGNED = 8,
    00015 };
    00016
    00017 bool MxInitialize(uint rate);
    00018 void MxMixSamples(void *buffer, uint samples);
    00019
    00020 MixerChannel *MxAllocateChannel();
    00021 void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, uint size, uint rate, uint flags);
    00022 void MxSetChannelVolume(MixerChannel *mc, uint left, uint right);
    00023 void MxActivateChannel(MixerChannel*);
    00024
    00025 #endif /* MIXER_H */