Moved to lib_spdif for S/PDIF Rx

This commit is contained in:
xross
2018-03-29 16:21:37 +01:00
parent d1681dc37f
commit dc62349472
2 changed files with 6 additions and 6 deletions

View File

@@ -7,8 +7,8 @@
#include "xua.h"
#include "xua_commands.h"
#if (SPDIF_RX == 1)
#include "SpdifReceive.h"
#if (SPDIF_RX)
#include "spdif.h"
#endif
#define LOCAL_CLOCK_INCREMENT 166667
@@ -506,14 +506,14 @@ void clockGen (streaming chanend ?c_spdif_rx, chanend ?c_adat_rx, out port p, ch
switch(tmp2)
{
/* LEFT */
case FRAME_X:
case FRAME_Z:
case SPDIF_FRAME_X:
case SPDIF_FRAME_Z:
spdifLeft = tmp << 4;
break;
/* RIGHT */
case FRAME_Y:
case SPDIF_FRAME_Y:
/* Only store sample if not in overflow and stream is reasonably valid */
if(!spdifOverflow && clockValid[CLOCK_SPDIF_INDEX])