Can Blitz create a sound?
Blitz3D Forums/Blitz3D Programming/Can Blitz create a sound?
| ||
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. |
| ||
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. |
| ||
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 |