Mail Archives: djgpp/1997/12/22/10:38:05
A. Jans-Beken wrote:
>
> This may be off-topic - please forgive.
>
> In a tile-based strategy game I want to add soundeffects (explosions and
> the like - recorded as MONO wav-files) - I am using DJGPP and allegro.
>
> My problem is that a lot of events happen, some on the visible area of
> the screen, some others not visible.
> In case of an event how can I decide if I must play the according
> soundeffect (depending on the position of the vehicle in relation to the
> visible area)
> How is the volume altered in relation to the distance and position of
> the event.
> Is it possible to include surround soundeffects?
>
> Can somebody send me some information?
>
> thanx
The intensity of sound is inversely proportional to the squared distance
to
the source. Only trouble with this is that most volume controls for the
wide
scala of available sound-cards are not quite linear. You could try using
some
gamma function to compensate...
As for surround effects and such.. you should realy ask this in a sound
group, as far as I know this is attainable by imposing fase differences
on
the left and right sound channel, this in combination with all kinds of
filters eg. flanging, hi-pass, etc... will generate some realy neat
sounding
effects...
happy coding,
Peter
- Raw text -