Added SPDIF channel count to chanstringgen script

This commit is contained in:
Ross Owen
2015-03-02 22:31:01 +00:00
parent d746e8cad5
commit 91e0427d5b

View File

@@ -16,7 +16,11 @@ def genstrings(outputChanCount, chanString, portString, structureString):
#elif defined(SPDIF_{p}) && defined(ADAT_{p}) && ((SPDIF_{p}_INDEX + 2) < (ADAT_{p}_INDEX))\n\
.{s}ChanStr_{i} = \"SPDIF/ADAT\",\n\
#elif((SPDIF_{p}_INDEX < {i}) && ({i} <= SPDIF_{p}_INDEX+2) && defined(SPDIF_{p})) \n \
.{s}ChanStr_{i} = \"SPDIF\",\n\
#if({i} - SPDIF_TX_INDEX == 1) \n\
.{s}ChanStr_{i} = \"SPDIF 1\", \n\
#elif({i} - SPDIF_TX_INDEX == 2) \n\
.{s}ChanStr_{i} = \"SPDIF 2\", \n\
#endif\n\
#elif((ADAT_{p}_INDEX < {i}) && defined(ADAT_{p})) \n\
#if({i} - ADAT_TX_INDEX == 1) \n\
.{s}ChanStr_{i} = \"ADAT 1\", \n\
@@ -42,7 +46,8 @@ def genstrings(outputChanCount, chanString, portString, structureString):
return;
print "/* AUTOGENERATED using stringtable.py */ \n\n"
print "/* AUTOGENERATED using stringtable.py */ \n"
print "/* Not very nice looking but the standard preprocessor is not very powerful\n and we save some memory over doing this all at runtime */"
print "/* Output Strings */\n\n"