[Live-devel] WindowsAudioInputDevice_noMixer.hh and unicode

Jeff Shanab jshanab at smartwire.com
Mon Nov 21 14:28:35 PST 2011


What happened was one of the files now has an include and that cascaded to it I think. I had updated last march, so I wasn't that far behind.
There appears to be "standard" methods also. Here is what I did to get me by until someone in the know can fix it.

http://pastebin.com/bim5wnFg

I just ifdef'd   look for the string UNICODE

I did not test this on a non-unicode machine or linux box yet. Just Web Searching



From: live-devel-bounces at ns.live555.com [mailto:live-devel-bounces at ns.live555.com] On Behalf Of Ross Finlayson
Sent: Monday, November 21, 2011 4:09 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] WindowsAudioInputDevice_noMixer.hh and unicode

I updated to the newest version of live555 and the WindowsAudioInput folder was added.

It was added in July 2003!  You've probably had it all along.  (But you don't have to use it if you don't want to; i.e., if you don't want to read PCM audio input from a Windows sound card.)


In one of my projects I cannot build because I get the error :       error C2664: 'strncpy' : cannot convert parameter 2 from 'WCHAR [32]' to 'const char *'                 c:\Users\jshanab\archiver\src\common\RTSP\WindowsAudioInputDevice\WindowsAudioInputDevice_noMixer.cpp


Obviously UNICODE must be defined for WAVEINCAPS to be set for wide.  How do I get this to work with Unicode. I have seen suggestions online that I must use some MS specific function other than strncpy?

If you find that this is the case, then please let us know, so we can update the code in future releases.  (Because this code - unlike the rest of the code distributed with LIVE555 - is Windows-specific, it's OK to call Windows-specific libraries from it.)
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20111121/581d0f41/attachment-0001.html>


More information about the live-devel mailing list