[NOOBS QUESTION] Good evening to everyone. First, sorry for my English, I'm trying to know better this language.
I've three files:
Main.cpp -> Contain the graphics interface, menu thread and audio thread. Lettore.cpp -> Contain the functions to reconize the type of the file and use the correct library for play the audio, also contain the function for stop, play,pause,skip a song. The two audio code library -> That decode the track and send it to ao for playing.
Now the question is: How I can implement this? My difficulty is in the main file. I write the "menu"("play/pause,skip,ecc....) thread code. Now the audio thread must be separated from the main(because can't block the program, the function for play is in a while), but must communicate with menu thread... How I can do this?
I'm using g++ with C++11 thread module. Thank you for your time
Ps: if this question isn't congruent with the rules i modify this question instantly!