The following code, for example, plays the sound file
Sound ringtone("ringtone.wav"); ringtone.play();
|Creates a |
|Starts playing the sound.|
Soundobject. The default constructor creates an empty sound that cannot be played. The second form initializes the sound by reading in the contents of the specified file.
Sound sound; Sound sound(filename);