Triode wrote:
> Does the same happen switching back from dop to pcm? We could insert
> some silence when switching to dop if this is consistently a problem.
You could try this. (adjust the pause frames to taste..)
Code:
--------------------
--- a/output.c
+++ b/output.c
@@ -123,7 +123,14 @@ frames_t _output_frames(frames_t avail) {
output.frames_played = 0;
output.track_started = true;
output.current_sample_rate = output.next_sample_rate;
- IF_DSD( output.dop = output.next_dop; )
+ IF_DSD(
+ // insert silence for dop to pcm
transition
+ if (output.dop != output.next_dop) {
+ output.state =
OUTPUT_PAUSE_FRAMES;
+ output.pause_frames = 32;
+ }
+ output.dop = output.next_dop;
+ )
if (!output.fade == FADE_ACTIVE || !output.fade_mode == FADE_CROSSFADE) {
output.current_replay_gain = output.next_replay_gain;
}
--------------------
------------------------------------------------------------------------
Triode's Profile: http://forums.slimdevices.com/member.php?userid=17
View this thread: http://forums.slimdevices.com/showthread.php?t=99395
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix