Visual Basic 2010 Express Tutorial 21 - Playing Sound Files
 

Visual Basic 2010 Express Tutorial 21 - Playing Sound Files


Description:


For this tutorial, wav sound files will be used. For users with MP3 files, the MP3 sound files will work the same way. This tutorial will cover three ways sound files can be played: Hard coded, part of the solution, and by relative location.


For relative location use Application.StartupPath


For example if a.wav is within the WAV_Folder, then the code to play would be:


My.Computer.Audio.Play(Application.StartupPath + “\WAV_Folder\a.wav”)


SpeakABCs Downloads: (Do Not Distribute The Girl’s Voice - Wav Files In Your Modified App)



SpeakABCs.zip


WAV_Folder.zip


ABC_icons.zip



Video Tutorial: Visual Basic 2010 Express Tutorial 21 - Playing Sound Files - SpeakABCs 5/11



















Previous Tutorial                 Next Tutorial