int i;\r
int deviceIndex;\r
FILE *fp;\r
- const char *fileName = "c:\\test_48k.ac3";\r
+ const char *fileName = "c:\\test_48k.ac3.spdif";\r
data.buffer = NULL;\r
\r
printf("usage: patest_wmme_ac3 fileName [paDeviceIndex]\n");\r
-\r
- printf("PortAudio Test: output a raw ac3 stream. SR = %d, BufSize = %d, Chans = %d\n", SAMPLE_RATE, FRAMES_PER_BUFFER, CHANNEL_COUNT);\r
+ printf("**IMPORTANT*** The provided file must include the spdif preamble at the start of every AC-3 frame. Using a normal ac3 file won't work."\r
+ printf("PortAudio Test: output a raw spdif ac3 stream. SR = %d, BufSize = %d, Chans = %d\n", \r
+ SAMPLE_RATE, FRAMES_PER_BUFFER, CHANNEL_COUNT);\r
\r
\r
if( argc >= 2 )\r
fileName = argv[1];\r
\r
- printf( "reading ac3 raw stream file %s\n", fileName );\r
+ printf( "reading spdif ac3 raw stream file %s\n", fileName );\r
\r
fp = fopen( fileName, "rb" );\r
if( !fp ){\r
- fprintf( stderr, "error opening ac3 file.\n" );\r
+ fprintf( stderr, "error opening spdif ac3 file.\n" );\r
return -1;\r
}\r
/* get file size */\r