[Live-devel] Audio capturing from microphone

Kerim ISIK kisik at bimel.com.tr
Thu Apr 28 11:00:03 PDT 2005


Dear Ross,

I did what you say and now  I am having LNK2001 errors. Is there any further 
replacement(or adding) needed in testWavAudioStreamer.cpp? The error 
messages are below.
Thanks for your precious support.

Kerim ISIK.

------------------ Linker Output--------

 "C:/Program Files/Microsoft Visual 
Studio/vc98\bin\cl" -c -I../UsageEnvironment/include -I../groupsock/include  
-I../liveMedia/include -I../BasicUsageEnvironment/include -I../WindowsAudioInputDevice 
 -Ox -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nolo
go -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 
 -DWIN32  -D_WIN32 -D_MT -D_DLL -MD -I. -I"C:/Program Files/Microsoft Visual 
Studio/vc98\include" testWAVAudioStreamer.cpp
testWAVAudioStreamer.cpp
 link -out:testWAVAudioStreamer.exe /RELEASE msvcirt.lib /NODEFAULTLIB 
/INCREMENTAL:NO /PDB:NONE /RELEASE /NOLOGO -subsystem:console,4.0 msvcrt.lib 
oldnames.lib kernel32.lib  ws2_32.lib mswsock.lib advapi32.lib 
testWAVAudioStreamer.obj ../WindowsAud
ioInputDevice/libWindowsAudioInputDevice_noMixer.lib 
../liveMedia/libliveMedia.lib ../groupsock/libgroupsock.lib 
../UsageEnvironment/libUsageEnvironment.lib 
../BasicUsageEnvironment/libBasicUsageEnvironment.lib
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_noMixer.obj) 
: error LNK2001: unresolved external symbol __imp__waveInGetNumDevs at 0
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_noMixer.obj) 
: error LNK2001: unresolved external symbol __imp__waveInGetDevCapsA at 12
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj) : 
error LNK2001: unresolved external symbol __imp__waveInStart at 4
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj) : 
error LNK2001: unresolved external symbol __imp__waveInAddBuffer at 12
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj) : 
error LNK2001: unresolved external symbol __imp__waveInPrepareHeader at 12
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj) : 
error LNK2001: unresolved external symbol __imp__waveInOpen at 24
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj) : 
error LNK2001: unresolved external symbol __imp__waveInClose at 4
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj) : 
error LNK2001: unresolved external symbol __imp__waveInUnprepareHeader at 12
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj) : 
error LNK2001: unresolved external symbol __imp__waveInReset at 4
libWindowsAudioInputDevice_noMixer.lib(WindowsAudioInputDevice_common.obj) : 
error 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.
Error executing NMAKE.

testProgs1.exe - 12 error(s), 0 warning(s)



----- Original Message ----- 
From: "Ross Finlayson" <finlayson at live.com>
To: "LIVE.COM Streaming Media - development & use" <live-devel at ns.live.com>
Sent: Monday, April 25, 2005 11:17 AM
Subject: Re: [Live-devel] Audio capturing from microphone


> At 01:16 PM 4/24/05, you wrote:
>>Hi,
>>I want to capture audio from microphone and stream it via livemedia.
>>In testWAVAudioStreamer.cpp file I did following changes.
>>I have changed the pcmsource definition like this:
>>
>>  AudioInputDevice* pcmSource
>>    = AudioInputDevice::createNew(*env,0,8,1,8000,20);
>>
>>Is this true?
>
> That looks OK.
>
>>I also added the following include statement
>>#include "WindowsAudioInputDevice_noMixer.hh"
>>Did I something wrong?
>>I am having the following error messages. I use MS VC++ 6.0 vith SP6. I 
>>build the mak file without error and so I have 
>>'libWindowsAudioInputDevice_noMixer.lib' file.
>>"link -out" does not contain  'libWindowsAudioInputDevice_noMixer.lib' 
>>file. how can i compile with this library? is there any change needed in 
>>.mak files?
>
> Yes, of course.  Because you're now linking with the 
> "WindowsAudioInputDevice_noMixer" library, you need to change your 
> application's ".mak" file appropriately:
> 1/ Add
>         -I../WindowsAudioInputDevice
> to the "INCLUDES =" line.
> 2/ Add
> 
> ../WindowsAudioInputDevice/libWindowsAudioInputDevice_noMixer.$(LIB_SUFFIX)
> to the "LOCAL_LIBS =" line.
>
>
> Ross Finlayson
> LIVE.COM
> <http://www.live.com/>
>
> _______________________________________________
> live-devel mailing list
> live-devel at lists.live.com
> http://lists.live.com/mailman/listinfo/live-devel
>
> 



More information about the live-devel mailing list