title: How can I get the volume of the sound from music object in sfml?
body: <p>I'm trying to write a program in c++ and I need to get the peak volume of a lot of small chunks of a 2h long audio, apparently this can be done in sfml by just using audioBuffer and getting the maximum value of the array, but this is a music object because it's a very large file, how can I turn a music object into a sound object or even better, can I get the peak volume just from the music object (the more efficient, the better). Also any other somewhat simple solution for this problem is welcome.</p>