src/mixer.h
changeset 5475 2e6990a8c7c4
parent 2977 97c1c76b499a
child 6201 bee01dc45e39
equal deleted inserted replaced
5474:ac55aefc54f3 5475:2e6990a8c7c4
       
     1 /* $Id$ */
       
     2 
       
     3 #ifndef MIXER_H
       
     4 #define MIXER_H
       
     5 
       
     6 typedef struct MixerChannel MixerChannel;
       
     7 
       
     8 enum {
       
     9 	MX_AUTOFREE = 1,
       
    10 //	MX_8BIT = 2,
       
    11 //	MX_STEREO = 4,
       
    12 //	MX_UNSIGNED = 8,
       
    13 };
       
    14 
       
    15 bool MxInitialize(uint rate);
       
    16 void MxMixSamples(void* buffer, uint samples);
       
    17 
       
    18 MixerChannel* MxAllocateChannel(void);
       
    19 void MxSetChannelRawSrc(MixerChannel *mc, int8 *mem, uint size, uint rate, uint flags);
       
    20 void MxSetChannelVolume(MixerChannel *mc, uint left, uint right);
       
    21 void MxActivateChannel(MixerChannel*);
       
    22 
       
    23 #endif /* MIXER_H */