[Live-devel] WindowsAudioInputDevice_noMixer.hh and unicode

Chris Richardson (WTI) chris at gotowti.com
Mon Nov 21 16:09:47 PST 2011


I also build cross-platform from one repo and understand the issues.
However it is my understanding that the code you are modifying is calling
mixerGetDevCaps, which is a Win32 function.  Also, as Ross has already said,
this code is all Windows only.

 

Chris Richardson

WTI

 

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

 

I am building cross platform from one src repo. TCHAR to be avoided at all
cost. J

 

From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Chris Richardson
(WTI)
Sent: Monday, November 21, 2011 4:48 PM
To: 'LIVE555 Streaming Media - development & use'
Subject: Re: [Live-devel] WindowsAudioInputDevice_noMixer.hh and unicode

 

Hi Jeff,

 

On Windows, when you want to build both Unicode and non-Unicode, the easiest
way is to use the Microsoft-specific TCHAR functions.  If you look up a
particular function on MSDN you can find the TCHAR routine name.  In this
case it will be _tcsncpy.

 

http://msdn.microsoft.com/en-us/library/xdsywd25(v=VS.100).aspx

 

Chris Richardson

WTI

 

From: live-devel-bounces at ns.live555.com
[mailto:live-devel-bounces at ns.live555.com] On Behalf Of Jeff Shanab
Sent: Monday, November 21, 2011 11:42 AM
To: LIVE555 Streaming Media - development & use (live-devel at ns.live555.com)
Subject: [Live-devel] WindowsAudioInputDevice_noMixer.hh and unicode

 

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

 

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\WindowsAud
ioInputDevice_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?

 

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


More information about the live-devel mailing list