Print whether direct channels are off or on to stdout in alffplay

This commit is contained in:
Chris Robinson
2016-08-29 22:18:44 -07:00
parent 4859984e33
commit 6d7f9aacd6
+4 -1
View File
@@ -757,8 +757,11 @@ static int audio_thread(void *userdata)
if(has_direct_out)
{
alGetSourcei(movState->audio.source, AL_DIRECT_CHANNELS_SOFT, &state);
state = !state;
alSourcei(movState->audio.source, AL_DIRECT_CHANNELS_SOFT,
state ? AL_FALSE : AL_TRUE);
state ? AL_TRUE : AL_FALSE);
printf("Direct channels %s\n", state ? "on" : "off");
fflush(stdout);
}
movState->direct_req = false;
}