public void Play(float volume = 1.0f, bool loop = false) { if (Source > 0) { AL.Source(Source, ALSourcef.Gain, volume); AL.Source(Source, ALSourceb.Looping, loop); AL.SourcePlay(Source); } }
public void Play(Vector3 pos, float volume = 1.0f, bool loop = false) { if (Source > 0) { AL.Source(Source, ALSource3f.Position, ref pos); AL.Source(Source, ALSourcef.Gain, volume); AL.Source(Source, ALSourceb.Looping, loop); AL.SourcePlay(Source); } }