diff options
Diffstat (limited to 'examples/alffplay.c')
-rw-r--r-- | examples/alffplay.c | 5 |
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; } |