Use std::shared_ptr<Sample> in Sound and fix LoopingSound to actually loop