arm hardware: fast forward, mute audio when passthrough AC3 / DTS

-thx DboxOldie

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
Frankenstone
2018-10-07 09:57:38 +02:00
committed by Thilo Graf
parent c58e9b9eb7
commit 2820170776

View File

@@ -399,7 +399,7 @@ static int32_t PlaybackContinue(Context_t *context)
if (context->playback->SlowMotion || context->playback->isForwarding || context->playback->BackWard) if (context->playback->SlowMotion || context->playback->isForwarding || context->playback->BackWard)
context->output->Command(context, OUTPUT_CLEAR, NULL); context->output->Command(context, OUTPUT_CLEAR, NULL);
if (context->playback->BackWard) if (context->playback->BackWard || context->playback->isForwarding)
context->output->Command(context, OUTPUT_AUDIOMUTE, "0"); context->output->Command(context, OUTPUT_AUDIOMUTE, "0");
context->playback->isPaused = 0; context->playback->isPaused = 0;
@@ -539,6 +539,7 @@ static int PlaybackFastForward(Context_t *context, int *speed)
context->playback->Speed = *speed; context->playback->Speed = *speed;
playback_printf(20, "Speed: %d x {%d}\n", *speed, context->playback->Speed); playback_printf(20, "Speed: %d x {%d}\n", *speed, context->playback->Speed);
context->output->Command(context, OUTPUT_FASTFORWARD, NULL); context->output->Command(context, OUTPUT_FASTFORWARD, NULL);
context->output->Command(context, OUTPUT_AUDIOMUTE, "1");
context->output->Command(context, OUTPUT_CONTINUE, NULL); context->output->Command(context, OUTPUT_CONTINUE, NULL);
} }
else else