How do you get a sound for your program?

When you create programs such like games, how do you get sounds for them?

One way is to use preset sounds in Small Basic.  There are four preset sounds as follows.

  1. Bell Ring
  2. Chime
  3. Chimes
  4. Click

Another way is to find free (or public domain) audio files.  You can use Sound.Play() or Sound.PlayAndWait() with audio files.  Mp3, wav, and wma format audio files are supported. Other format depends on audio codecs installed user's computer. 

The other way is to create your own audio files. Following instructions show a sample to create m4a format audio file with Sound Player in Windows 8.1.

  1. Connect a microphone or a instrument to your PC.
  2. Start > Apps by category > Tools > Sound Recorder
  3. Click the mic button.
  4. Make a sound.
  5. Click the stop button.
  6. Play the sound.
  7. If you need to trim the sound, click Trim button and drag start and end circles then click OK.
  8. And you can find the audio file in following folder. Xxx means your account name.

I made some audio files with CASIO MT-240 keyboard (in the picture above) and uploaded to TechNet Gallery.  And sample code to use these audio files is VTQ526.

See also for your information.