From 6d7f9aacd6b7bb3941ffdab21664765ee9db7d9a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 29 Aug 2016 22:18:44 -0700 Subject: Print whether direct channels are off or on to stdout in alffplay --- examples/alffplay.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/alffplay.c b/examples/alffplay.c index 16684c5e..2d38216f 100644 --- a/examples/alffplay.c +++ b/examples/alffplay.c @@ -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; } -- cgit v1.2.3