Creating Voice, Mixer and Sample Instance
Thread #609313. Printed from Allegro.cc
I'm having some problems when creating my own voice, mixer and sample instance. I remember I did it once, but I can't do it now . Before I show the code, I want to ask if it's a good idea to create two voices each one with its own mixer?. This is because I want to attach certain samples to a "music" mixer and others to a "sfx" mixer, so I can adjust the gain of each mixer without touching all the samples that are attached to it. Ohhh shit... I have just realized that the gain option is for A5.1... Well but anyways I want to know why it's not working?, I know I'm missing something.
I always get an error in that last step, the rest don't have error checking but I have already check them and they work fine.
Edit: I got it, I was missing al_attach_sample_instance_to_mixer(), this is like in a real studio when you need to connect all those wires...