Quote:
I don't know how to make it so it will find it globally, on anyones computer.
At the risk of stating the obvious, you will need to include this sound file along with your program. Where you place it during your install is, somewhat, a matter of choice.
Using an absolute path as you are currently doing is not a very good way to access any file due to the risk of that path breaking with the many embedded folders.
One option is to place your file in a separate folder within your application's directory. A better method for accessing it is:
Dim f As folderitem = getfolderItem("My Sounds") //looks for a folder in your app directory named my sounds.
if f <> NIl and f.exists Then
f = f.child("Sovereign.mp3"
if f <> Nil and f.exists Then
dim mySound As sound = f.OpenAsSound
if mySound <> Nil Then
mySound.play
End if
Else
//handle the file missing error here
end if
Else
//handle the folder missing error here
End if
You can also opt to store your sound in SpecialFolder locations (see the LR)