Link to home
Start Free TrialLog in
Avatar of VIBESPRO
VIBESPROFlag for Antigua and Barbuda

asked on

SFX

Can someone help me to get soundFX in pascal using sound blaster pro, in the case of making my own sounds?
Avatar of VIBESPRO
VIBESPRO
Flag of Antigua and Barbuda image

ASKER

The sounds produced should be of a value type.  I mean that a number can be used to play a note.  For example the sound procedure implemeted in pascal.  SOUND(450); DELAY(40) NOSOUND;
That is used for the PC speaker.  The sound procedure utilizes the timer to oscillate the speaker at a frequency.  The Sound Blaster uses Pulse Code Modulation, so it wouldn't be that easy.  You would have to make your own oscillator and send the stream to the sound blaster.  If you wanted to play a sound with the frequency of 440, you would most likely use a sine function whose period is 1/440 of a second.  Multiply the sine by the loudness, then send it out to the blaster.
ASKER CERTIFIED SOLUTION
Avatar of jack_p50
jack_p50

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial