X-Git-Url: http://git.tdb.fi/?p=libs%2Fal.git;a=blobdiff_plain;f=source%2Fsource.cpp;h=137b785d131ac008b47f335edff6dc5abbb34cdc;hp=3619b1d61205c9128d0ffb87d7e66909acf738f2;hb=97dae493948466867b9f661f45e451711dd6b41b;hpb=58dc1e7c15f928d0f861a20c46f2be4112bf5baf diff --git a/source/source.cpp b/source/source.cpp index 3619b1d..137b785 100644 --- a/source/source.cpp +++ b/source/source.cpp @@ -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(buffer.get_id()));