I thought about this too but Sounds are only returned as shared pointer so it would look like this: sound->setPosition(x).play() - the -> changes to .