From 654bc7cc21a8ca7ae4e731e5f25b19565107cef9 Mon Sep 17 00:00:00 2001 From: rossb Date: Sun, 8 Mar 2009 08:15:50 +0000 Subject: [PATCH] added notes to pa_test_ac3.c that the test stream file must include the correct spdif preamble on every ac3 frame --- test/patest_wmme_ac3.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/test/patest_wmme_ac3.c b/test/patest_wmme_ac3.c index a0c0e1b..fcdbbcc 100644 --- a/test/patest_wmme_ac3.c +++ b/test/patest_wmme_ac3.c @@ -111,22 +111,23 @@ int main(int argc, char* argv[]) int i; int deviceIndex; FILE *fp; - const char *fileName = "c:\\test_48k.ac3"; + const char *fileName = "c:\\test_48k.ac3.spdif"; data.buffer = NULL; printf("usage: patest_wmme_ac3 fileName [paDeviceIndex]\n"); - - printf("PortAudio Test: output a raw ac3 stream. SR = %d, BufSize = %d, Chans = %d\n", SAMPLE_RATE, FRAMES_PER_BUFFER, CHANNEL_COUNT); + 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." + printf("PortAudio Test: output a raw spdif ac3 stream. SR = %d, BufSize = %d, Chans = %d\n", + SAMPLE_RATE, FRAMES_PER_BUFFER, CHANNEL_COUNT); if( argc >= 2 ) fileName = argv[1]; - printf( "reading ac3 raw stream file %s\n", fileName ); + printf( "reading spdif ac3 raw stream file %s\n", fileName ); fp = fopen( fileName, "rb" ); if( !fp ){ - fprintf( stderr, "error opening ac3 file.\n" ); + fprintf( stderr, "error opening spdif ac3 file.\n" ); return -1; } /* get file size */ -- 2.43.0