]> Repos - portaudio/commitdiff
added notes to pa_test_ac3.c that the test stream file must include the correct spdif...
authorrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Sun, 8 Mar 2009 08:15:50 +0000 (08:15 +0000)
committerrossb <rossb@0f58301d-fd10-0410-b4af-bbb618454e57>
Sun, 8 Mar 2009 08:15:50 +0000 (08:15 +0000)
test/patest_wmme_ac3.c

index a0c0e1bae2c70bb5fa39d7be80162a0b3c0d3f5d..fcdbbccc4bb9a1b2ec015316ff626bf61c1759a8 100644 (file)
@@ -111,22 +111,23 @@ int main(int argc, char* argv[])
     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