Home > Mobile >  QT + VS2015 64 cannot read the audio input device
QT + VS2015 64 cannot read the audio input device

Time:09-21

Is developing A program ( A), the overall use qt5.9.8 and vs2015 for development, development and debugging phase have been using 32-bit (vs2015) the Debug version of the entire process of recording equipment acquisition is no problem, but when want to publish A 64 - bit version (VS2015_64), at this time will not be able to identify the audio equipment, don't know why,
Use the QAudioDeviceInfo info=QAudioDeviceInfo: : defaultInputDevice (); , can't access equipment, printed name (info. DeviceName ()) When is empty ", "
Call QList Devices=QAudioDeviceInfo: : availableDevices (QAudio: : AudioInput); , the equipment number is 0,
Now, the whole program with the help of many third party libraries, if the protobuf and fdkaac etc, is a dynamic connection (MD),
In order to compare, I built a test program ( B ), the whole test program is a widget, no other things, is also a 64 release version, but this time called
QAudioDeviceInfo: : defaultInputDevice (); And QAudioDeviceInfo: : availableDevices (QAudio: : AudioInput); And to get to the device correctly,
Key:
1. A. in A 32-bit Debug mode, the QAudioDeviceInfo: : defaultInputDevice (); And QAudioDeviceInfo: : availableDevices (QAudio: : AudioInput); Equipment can be normal, but 64 release and debug mode cannot get normal equipment

2. The program can B in 64 a release or debug mode for equipment,

CodePudding user response:

SysWow64 folders, is a 64 - bit Windows, used to store a 32-bit Windows system files where

https://blog.csdn.net/vXueYing/article/details/86693363

CodePudding user response:

Supplemented by the , now the situation is: only under the 32-bit debug can get audio equipment, other patterns (32 bit release or 64 - bit) were unable to get the recording devices,

CodePudding user response:

update: program in my computer now no matter what version can get recording equipment, but unable to get the recording equipment on someone else's computer? Why is this? DLL files are complete, also does not have an error on other people's computer, is unable to get the recording equipment, program B on your own computer or on someone else's computer can get the recording equipment,
  •  Tags:  
  • Qt
  • Related