]> git.mxchange.org Git - simgear.git/commitdiff
Add the option to set the reference name afterwards (but before calling play()
authorErik Hofman <erik@ehofman.com>
Thu, 5 Nov 2015 14:33:06 +0000 (15:33 +0100)
committerErik Hofman <erik@ehofman.com>
Thu, 5 Nov 2015 14:33:06 +0000 (15:33 +0100)
simgear/sound/sample_openal.hxx

index fd9216d803ad1b9ea2da6abed0b89c608f3b3845..1266c2497922776385ead77a45b040113b780281 100644 (file)
@@ -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; }