C++ xmms2 client stream buffer
Good day!
I am building an xmms2 client using c++ and qt4.
All is going good, except when i stream an mp3 over network.
I have a server that holds all the music. it use gnump3d to stream.
Xmms2 use curl_http for streaming and mpg123 to play it.
The problem is that it start playing immediatly and sometime my connection is not fast enough to keep up.
I want to be able to wait for a percent of the file to be buffered before starting playback.
From my research, this is not implemented in xmms2.
I have registered to the mailing list and will ask when i get a response back for the registration, but i figured i would ask here to, might reached some people that can help who are not on the mailing list.
My assumption is that it should be the mpg123 plugin for xmms2 that wait for a buffer size before starting playback.
I guess im asking where to start looking for the best solution, i dont want to hack code i dont fully understand like xmms2 source if there is already a way to do what i need, or maybe i could do it on the client side... But if it should be in xmms2 source i am more then willing to give it a shot.
Thank you for your time.
|