[Live-devel] Audio capturing from microphone
Ross Finlayson
finlayson at live.com
Mon Apr 25 02:17:15 PDT 2005
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/>
More information about the live-devel
mailing list