After playing sound I want to exit of a program but I have the following error: Stop used in callback. Whats the problem and how can I solve it ?
Error "Stop used in callback"
The mediaplayer uses callbacks to notify when a file has been played. It is not allowed to quit the program in a callback (you cannot do this in a callback for a CBA button either for example).
To work around this, set a flag to quit the program and check this flag in your main message loop. An example of how to do this (exit the program from a CBA button click) can be found in DemoOPL included in the opl developer pack found on opl-dev.sourceforge.net