When I try to play music from another class I get an error.
I have the music defined in my second class under public and have just been using SecondClass.button_click.play(); in my main class to play the music. (button_click is the name of the music I'm trying to play.)
The error I get is:
"Failed to play audio stream: sound parameters have not been initialized (call Initialize first)"
I tried calling the initialize() function on button_click but initialize() is a protected member of the Music class so obviously I can't.
Any ideas on how I could fix this?