aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-08-29 22:18:44 -0700
committerChris Robinson <[email protected]>2016-08-29 22:18:44 -0700
commit6d7f9aacd6b7bb3941ffdab21664765ee9db7d9a (patch)
tree4a71067028e642b2c77feed4d525d0302032dde7
parent4859984e33bafa242f068da44d9eb5ca73c39632 (diff)
Print whether direct channels are off or on to stdout in alffplay
-rw-r--r--examples/alffplay.c5
1 files changed, 4 insertions, 1 deletions
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;
}