39 assert(alGetError() == AL_NO_ERROR);
48 assert(alGetError() == AL_NO_ERROR);
55 assert(alGetError() == AL_NO_ERROR);
61 assert(alGetError() == AL_NO_ERROR);
64 assert(alGetError() == AL_NO_ERROR);
71 int state = AL_PLAYING;
72 alGetSourcei(
m_sourceId, AL_SOURCE_STATE, &state);
73 return state != AL_STOPPED;
79 assert(alGetError() == AL_NO_ERROR);
85 alSourcei(
m_sourceId, AL_LOOPING, looping ? AL_TRUE : AL_FALSE);
90 alSourcei(
m_sourceId, AL_SOURCE_RELATIVE, relative ? AL_TRUE : AL_FALSE);
95 alSourcef(
m_sourceId, AL_REFERENCE_DISTANCE, distance);
116 alSource3f(
m_sourceId, AL_VELOCITY, velocity.
x, velocity.
y, 0);