]> git.tdb.fi Git - libs/al.git/blobdiff - source/source.cpp
Two more atribute setting functions in Source
[libs/al.git] / source / source.cpp
index 3619b1d61205c9128d0ffb87d7e66909acf738f2..137b785d131ac008b47f335edff6dc5abbb34cdc 100644 (file)
@@ -84,6 +84,16 @@ void Source::set_looping(bool l)
        attribute(AL_LOOPING, l);
 }
 
+void Source::set_gain(float g)
+{
+       attribute(AL_GAIN, g);
+}
+
+void Source::set_rolloff_factor(float f)
+{
+       attribute(AL_ROLLOFF_FACTOR, f);
+}
+
 void Source::set_buffer(const Buffer &buffer)
 {
        attribute(AL_BUFFER, static_cast<int>(buffer.get_id()));