mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Remove pass-through test code.
This commit is contained in:
parent
9d14522121
commit
e3681812bd
13
audio.c
13
audio.c
@ -1148,6 +1148,7 @@ static void AlsaExit(void)
|
|||||||
RingBufferDel(AlsaRingBuffer);
|
RingBufferDel(AlsaRingBuffer);
|
||||||
AlsaRingBuffer = NULL;
|
AlsaRingBuffer = NULL;
|
||||||
}
|
}
|
||||||
|
AlsaFlushBuffer = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1750,6 +1751,7 @@ static void OssExit(void)
|
|||||||
close(OssMixerFildes);
|
close(OssMixerFildes);
|
||||||
OssMixerFildes = -1;
|
OssMixerFildes = -1;
|
||||||
}
|
}
|
||||||
|
OssFlushBuffer = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1906,17 +1908,6 @@ static void *AudioPlayHandlerThread(void *dummy)
|
|||||||
}
|
}
|
||||||
Debug(3, "audio: thread channels %d sample-rate %d hz\n",
|
Debug(3, "audio: thread channels %d sample-rate %d hz\n",
|
||||||
AudioChannels, AudioSampleRate);
|
AudioChannels, AudioSampleRate);
|
||||||
if (1) {
|
|
||||||
int16_t buf[6144 / 2];
|
|
||||||
|
|
||||||
buf[0] = htole16(0xF872); // iec 61937 sync word
|
|
||||||
buf[1] = htole16(0x4E1F);
|
|
||||||
buf[2] = htole16((7 << 5) << 8 | 0x00);
|
|
||||||
buf[3] = htole16(0x0000);
|
|
||||||
memset(buf + 4, 0, 6144 - 8);
|
|
||||||
|
|
||||||
AlsaEnqueue(buf, 6144);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user