aalError Source::update() {
	
	if(status != Playing || updateCulling()) {
		return AAL_OK;
	}
	
	aalError ret = updateBuffers();
	
	updateCallbacks();
	
	return ret;
}
Example #2
0
aalError DSoundSource::resume() {
	
	if(status != Paused) {
		return AAL_OK;
	}
	
	status = Playing;
	
	if(updateCulling()) {
		return AAL_OK;
	}
	
	if(lpdsb->Play(0, 0, loop || stream ? DSBPLAY_LOOPING : 0)) {
		return AAL_ERROR_SYSTEM;
	}
	
	return AAL_OK;
}