TuneManager now works properly using a buffer without memory leaks