Chumbo
8th September 2011, 22:49
Hi,
I'm doing some tinkering with reading PCM audio from an AVS file so I can learn how to do some audio development.
I have simple code that reads fine when compiled in 32bit (using VS 2010). Then using the exact same code in the 64bit project (has proper includes/libraries/etc. for 64bit) but does not work correctly.
Basically, when debugging, I hit the call to AVIStreamInfo, the structure (AVISTREAMINFO) loaded is fine but it thinks the stream is video. In the 32bit project, it recognizes it as an audio stream just fine but not in the 64bit project.
Can anyone help me out please if you've used this successfully in a 64bit environment please?
I tried the includes/libraries from both SDKs, i.e., 7.0A and 7.1 and both behave the same way. Thanks for any help.
[EDIT] I found the problem. It was actually my source AVS file. I needed to specifically use the 64bit version of ffms, i.e., ffms2-x64.dll.
I'm doing some tinkering with reading PCM audio from an AVS file so I can learn how to do some audio development.
I have simple code that reads fine when compiled in 32bit (using VS 2010). Then using the exact same code in the 64bit project (has proper includes/libraries/etc. for 64bit) but does not work correctly.
Basically, when debugging, I hit the call to AVIStreamInfo, the structure (AVISTREAMINFO) loaded is fine but it thinks the stream is video. In the 32bit project, it recognizes it as an audio stream just fine but not in the 64bit project.
Can anyone help me out please if you've used this successfully in a 64bit environment please?
I tried the includes/libraries from both SDKs, i.e., 7.0A and 7.1 and both behave the same way. Thanks for any help.
[EDIT] I found the problem. It was actually my source AVS file. I needed to specifically use the 64bit version of ffms, i.e., ffms2-x64.dll.