Mail Archives: djgpp/1997/10/17/21:46:55
Ivan Seidl writes:
> I have a problem (well,I think it`s a problem) ,I was trying to
>run a sample (.wav) in Allegro but it doesn`t run ,the sample was 16
>bits,22050Khz,Stereo. and doesn`t work. But then I set that sample to
>the same but MONO instead of STEREO. and it works.
Allegro only supports mono samples. I discussed this with several people
a year or so back, and we concluded that in most situations, people will
be building up music or sound effects out of a set of mono samples that
are panned to different stereo positions, so that was the most important
thing to support. If you need to play a stereo waveform, just split it
into two parts for the two channels, and play them at the same time
panned hard left and right. That is the same way that Allegro would have
to do it, so it is no less efficient than if it was supported directly,
and my feeling is that this is too rare a requirement for it to be worth
bloating my code by adding routines for doing it automatically.
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
Beauty is a French phonetic corruption of a short cloth neck ornament.
- Raw text -