[Live-devel] input from microphone and camera

Prabhu Rangarajan prabhur at CLEMSON.EDU
Tue Apr 25 00:23:04 PDT 2006


Hi Ross,
I checked the archives for some pointers to capture audio from microphone.
Following some leads, I made this change in testWAVAudioStreamer.cpp:

AudioInputDevice* pcmSource = AudioInputDevice::createNew(*env,0,8,1,8000,20)
#include "WindowsAudioInputDevice_noMixer.hh" added

testprogs.Mak had the following change:
-I../WindowsAudioInputDevice added to the INCLUDES line
2. LOCAL_LIBS has
../WindowsAudioInputDevice/libWindowsAudioInputDevice_noMixer.$(LIB_SUFFIX)
added to it.

I am getting the following linkage errors:
        link -out:testWAVAudioStreamer.exe /RELEASE msvcirt.lib
/NODEFAULTLIB /I
NCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO -subsystem:console,4.0 msvcrt.lib
oldna
mes.lib kernel32.lib  ws2_32.lib mswsock.lib advapi32.lib
testWAVAudioStreamer.o
bj ../liveMedia/libliveMedia.lib ../groupsock/libgroupsock.lib
../UsageEnvironme
nt/libUsageEnvironment.lib
../BasicUsageEnvironment/libBasicUsageEnvironment.lib
 ../WindowsAudioInputDevice/libWindowsAudioInputDevice_noMixer.lib
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_noMixer.obj)
: er
ror LNK2001: unresolved external symbol __imp__waveInGetNumDevs at 0
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_noMixer.obj)
: er
ror LNK2001: unresolved external symbol __imp__waveInGetDevCapsA at 12
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj)
: err
or LNK2001: unresolved external symbol __imp__waveInStart at 4
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj)
: err
or LNK2001: unresolved external symbol __imp__waveInAddBuffer at 12
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj)
: err
or LNK2001: unresolved external symbol __imp__waveInPrepareHeader at 12
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj)
: err
or LNK2001: unresolved external symbol __imp__waveInOpen at 24
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj)
: err
or LNK2001: unresolved external symbol __imp__waveInClose at 4
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj)
: err
or LNK2001: unresolved external symbol __imp__waveInUnprepareHeader at 12
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj)
: err
or LNK2001: unresolved external symbol __imp__waveInReset at 4
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj)
: err
or LNK2001: unresolved external symbol __imp__waveInStop at 4
testWAVAudioStreamer.exe : fatal error LNK1120: 10 unresolved externals
NMAKE : fatal error U1077: 'link' : return code '0x460'
Stop.

What is the mistake that I am doing%3


More information about the live-devel mailing list