[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 159
  • Last Modified:

SFX

Can someone help me to get soundFX in pascal using sound blaster pro, in the case of making my own sounds?
0
VIBESPRO
Asked:
VIBESPRO
1 Solution
 
VIBESPROAuthor Commented:
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;
0
 
scrapdogCommented:
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.
0
 
jack_p50Commented:
see question about "programming 8254" or smth like that
you can get sound unit (great)! :   http://www.geocities.com/SiliconValley/Bay/9553/
(see soundlib 1.15 in source section)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now