An array of sound to play through a button
I have set up a table view, that when an item is touched in the table view it then navigates to a detailed view.
for example I have a list of countries...
when ireland is touched.
A detailed screen of statistics about ireland is navigated to. the countries and detailed information are setup in two different arrays. when the country is touched the related statistics are viewed.
currently I have setup, using the sample code from Syssound, when the detailed view about the country's statistics are viewed there is a button that plays the tap noise from Syssound.
what I want to do is create an array of short sound files, each one ranges from 3-5 seconds. so that when I country is picked the detailed view of the statistics are displayed and the related sound from the array is played through the button.
I am having trouble setting up the array of sounds and create the link to the button.
can anyone help please?
|