From: Erik Hofman Date: Thu, 5 Nov 2015 14:33:06 +0000 (+0100) Subject: Add the option to set the reference name afterwards (but before calling play() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=319922f04483e48695ff975d98cac1d803477cfd;p=simgear.git Add the option to set the reference name afterwards (but before calling play() --- diff --git a/simgear/sound/sample_openal.hxx b/simgear/sound/sample_openal.hxx index fd9216d8..1266c249 100644 --- a/simgear/sound/sample_openal.hxx +++ b/simgear/sound/sample_openal.hxx @@ -458,6 +458,7 @@ public: * @return Sample name */ inline std::string get_sample_name() const { return _refname; } + inline void set_sample_name(const std::string& refname) { _refname = refname; } inline virtual bool is_queue() const { return false; }