RE: [AD] Sound Streaming

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Would that be a lot of work? Are you able to do something like this? I am
> not familiar with the structure of Allegro's sound architecture. Maybe I
> will do the change myself when I really start this project sometime in the
> future...

I might do it at some stage, but I have precious little time at the moment,
and I'd rather spend it developing games :-)

In the meantime, the best thing to do is to ask Allegro for 48000 Hz 16-bit
stereo sound, then detect what frequency it actually is, then create an
audio stream at that frequency. I'm not sure how you detect what frequency
it actually is - we might need a new function to do this.

Have a look around the sound.c and mixer.c files, and see if there's a
variable containing frequency or something. In particular, mixer.c will need
to know the frequency when it sets the 'diff' field or whatever it's called,
in MIXER_VOICE or whichever struct it is.

If you manage to implement a function to return the sound frequency, please
post a patch here - we'd be very grateful :-) E-mail me privately if you
need help creating patches.

Ben Davis



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/