mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 15:02:58 +02:00
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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user