Can Blitz create a sound?

Blitz3D Forums/Blitz3D Programming/Can Blitz create a sound?

Sir Gak(Posted 2014) [#1]
Is there anyway to create an internal sound inside Blitz3D without loading a pre-made external sound? I am working on a Backgammon game and want to create a dice roll sound or a mouse click sound, but entirely within the game with no external graphics or sounds.


Kryzon(Posted 2014) [#2]
I imagine that you would use this and supply a sound from memory:
http://blitzbasic.com/codearcs/codearcs.php?code=1199

Here is a much more thorough example:
http://blitzbasic.com/codearcs/codearcs.php?code=1111

In your case, you would write a simple program to convert a WAV file to .bb Data statements and paste these statements in your code and use them to build the sounds in memory.

These were taken from the Code Archives -> Audio section, which I recommend that you take a look.


mv333(Posted 2014) [#3]
write a simple program to convert a WAV file to .bb Data statements


Convert any file to bb data file
Any File to b64 BB data statements