Hey everyone, for my final project I would like to include some audio. I wanted to use a picture of a speaker (like the one that usually pops up when you turn your volume up or down o your Mac laptop for example) as the button that you click in order to hear the audio. I already have a button class, but I just wanted to make sure that I would need to create a new ImageButton class correct? If so what are some helpful parameters that you can think of that I would have to pass in? The ones I thought of this far are the center point of where I want the picture to appear and the filename of the picture.
Also, I was wondering if anyone had any tips on how to write code in terms of actually opening up audio files. I did some online research and most of the sources tells me that I would have to convert my audio file into a .wav or .mp3 file and then use a downloaded package or something like that to actually open the file and play it. I was wondering if anyone had any other ideas? Thanks!