[Freeswitch-dev] lock unlock in PortAudio

Sluschny, Thomas Thomas.Sluschny at siemens.com
Fri Apr 25 04:08:46 EDT 2008


lines 448 / 449:
f = ((logf(*rms)) - (logf(s->rmso)));

rmsi[*nout - 1] = logf(s->rmso) + (prop * f);

This is up to date and i think its what you expect (rev 8193).

But i don't know why i get these errors:
Fehler 3 error C2143: syntax error : missing ')' before ';' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 448 
Fehler 4 error C2143: syntax error : missing ';' before ')' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 448 
Fehler 5 error C2143: syntax error : missing ';' before ')' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 448 
Fehler 6 error C2059: syntax error : ')' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 448 
Warnung 7 warning C4552: '+' : operator has no effect; expected operator with side-effect d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 449 

I'm the only one with this problem?
 
As i wrote below, i get no errors and no warnings with these lines: 

f1 = logf(*rms);

f2 = f1 - logf(s->rmso);

f1 = prop * f2;

f2 = logf(s->rmso);

rmsi[*nout - 1] = f2 + f1;

 
I tested a lot of parenthesis settings, but without result. May be its a global compiler setting or it appears only in a german version of VS2005 ...
I use Visual Studio professional edition 8.0.50727.42
 
 
What about these 2 errors:
Fehler 8 error LNK2001: unresolved external symbol __imp__switch_console_set_complete at 4 mod_commands.obj 
Fehler 9 error LNK2001: unresolved external symbol __imp__switch_console_set_alias at 4 mod_commands.obj 

seams that some exports are missing
 
 
thanks for your patience
Thomas
 
 


________________________________

Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Michael Jerris
Gesendet: Donnerstag, 24. April 2008 16:53
An: freeswitch-dev at lists.freeswitch.org
Betreff: Re: [Freeswitch-dev] lock unlock in PortAudio


Can you paste the exact lines you have for line 448 and 449 of lpc10_decode.c.  I have tried with several compilers including msvc 2005 and can not get any warnings out of those lines as they are in tree. 

MIke

p.s. I fixed the oki_adpcm.c warnings.


On Apr 24, 2008, at 7:10 AM, Sluschny, Thomas wrote:


	i sent you all error/warning output:
	 
	Fehler 1 Die Datei "d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\pthreads-w32-2-7-0-release" konnte nicht gelöscht werden.
	Stellen Sie sicher, dass die Datei nicht geöffnet oder schreibgeschützt ist. Download PTHREAD 
	Fehler 2 Die Datei "d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\howl-1.0.0" konnte nicht gelöscht werden.
	Stellen Sie sicher, dass die Datei nicht geöffnet oder schreibgeschützt ist. Download HOWL 
	Warnung 3 warning C4244: '+=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 180 
	Warnung 4 warning C4244: '+=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 195 
	Warnung 5 warning C4244: '-=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 224 
	Warnung 6 warning C4244: '-=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 230 
	Fehler 7 error C2143: syntax error : missing ')' before ';' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 448 
	Fehler 8 error C2143: syntax error : missing ';' before ')' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 448 
	Fehler 9 error C2143: syntax error : missing ';' before ')' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 448 
	Fehler 10 error C2059: syntax error : ')' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 448 
	Warnung 11 warning C4552: '+' : operator has no effect; expected operator with side-effect d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 449 
	Fehler 12 error LNK2001: unresolved external symbol __imp__switch_console_set_complete at 4 mod_commands.obj 
	Fehler 13 error LNK2001: unresolved external symbol __imp__switch_console_set_alias at 4 mod_commands.obj 
	Fehler 14 fatal error LNK1120: 2 unresolved externals D:\download\svn-win32-1.4.5\bin\freeswitch1.0\Release\mod\mod_commands.dll 1 
	Warnung 15 warning C4718: 'burnStack' : recursive call has no side effects, deleting d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\libdingaling\src\sha1.c 542 
	Fehler 16 fatal error LNK1181: cannot open input file '..\..\..\..\release\libvoipcodecs.lib' mod_voipcodecs 
	
	 
	As you can see we've got already problems with lpc10_decode.c 449 .
	Additional 2 new "LNK2001: unresolved external symbol " errors occur.
	 
	I use rev 8191, this is a Release Clean Build.
	 
	Thomas
	 
	 
	
	
________________________________

	Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Michael Jerris
	Gesendet: Mittwoch, 23. April 2008 18:51
	An: freeswitch-dev at lists.freeswitch.org
	Betreff: Re: [Freeswitch-dev] lock unlock in PortAudio
	
	
	Try again svn revision 8177 or later, see if that does the trick. 

	Mike

	On Apr 23, 2008, at 4:32 AM, Sluschny, Thomas wrote:
	

		yes, it compiles now,
		thank you Mike.
		 
		the only thing i get now are these 2 warnings:
		Warnung 1 warning C4552: '-' : operator has no effect; expected operator with side-effect d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 448 
		Warnung 2 warning C4552: '*' : operator has no effect; expected operator with side-effect d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 449 
		
		I'm not shure, that the calculation will be correct with this warnings (i didn't test it and i've got not so much experience here)?
		(do not misunderstand me, i don't want to bother you ;) )
		
		 
		Thomas
		 

________________________________

		Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Michael Jerris
		Gesendet: Dienstag, 22. April 2008 17:04
		An: freeswitch-dev at lists.freeswitch.org
		Betreff: Re: [Freeswitch-dev] lock unlock in PortAudio
		
		
		Please update and see if that fixes the lpc10_decode.c:447 issue. 

		Mike

		On Apr 22, 2008, at 10:22 AM, Sluschny, Thomas wrote:
		

			ok, inet_pton problem is solved now :)
			but ... ;(
			Fehler 1 Die Datei "d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\pthreads-w32-2-7-0-release" konnte nicht gelöscht werden.
			Stellen Sie sicher, dass die Datei nicht geöffnet oder schreibgeschützt ist. Download PTHREAD 
			Fehler 2 Die Datei "d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\howl-1.0.0" konnte nicht gelöscht werden.
			Stellen Sie sicher, dass die Datei nicht geöffnet oder schreibgeschützt ist. Download HOWL 
			Warnung 3 warning C4244: '+=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 180 
			Warnung 4 warning C4244: '+=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 195 
			Warnung 5 warning C4244: '-=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 224 
			Warnung 6 warning C4244: '-=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 230 
			Warnung 7 warning C4244: '+=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 69 
			Fehler 8 error C2143: syntax error : missing ')' before ';' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 447 
			Warnung 9 warning C4552: '*' : operator has no effect; expected operator with side-effect d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 447 
			Warnung 10 warning C4552: '-' : operator has no effect; expected operator with side-effect d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 447 
			Fehler 11 error C2059: syntax error : ')' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 447 
			Warnung 12 warning C4718: 'burnStack' : recursive call has no side effects, deleting d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\libdingaling\src\sha1.c 542 
			Fehler 13 fatal error LNK1181: cannot open input file '..\..\..\..\release\libvoipcodecs.lib' mod_voipcodecs 
			
			 
			the only real problem i see is line 447 in lpc10_decode.c:
			rmsi[*nout - 1] = logf(s->rmso) + prop*(logf(*rms) - logf(s->rmso));

			i don't know exactly the problem but it worked with:

			f1 = logf(*rms);

			f2 = f1 - logf(s->rmso);

			f1 = prop * f2;

			f2 = logf(s->rmso);

			rmsi[*nout - 1] = f2 + f1;

			
			 

			hope this helps,

			Thomas


________________________________

			Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Michael Jerris
			Gesendet: Dienstag, 22. April 2008 14:37
			An: freeswitch-dev at lists.freeswitch.org
			Betreff: Re: [Freeswitch-dev] lock unlock in PortAudio
			
			
			I had forgotten to update the msvc 2005 build files, those are in tree now.  Are there any other warnings/errors from your build now without the workarounds? 

			Mike

			On Apr 22, 2008, at 5:45 AM, Sluschny, Thomas wrote:
			

				sry i forgot: i updated to rev. 8165

________________________________

				Von: Sluschny, Thomas 
				Gesendet: Dienstag, 22. April 2008 11:42
				An: 'freeswitch-dev at lists.freeswitch.org'
				Betreff: AW: [Freeswitch-dev] lock unlock in PortAudio
				
				
				I updated complete, but errors still exists, here my complete output:
				 
				Fehler 1 Die Datei "d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\pthreads-w32-2-7-0-release" konnte nicht gelöscht werden.
				Stellen Sie sicher, dass die Datei nicht geöffnet oder schreibgeschützt ist. Download PTHREAD 
				Fehler 2 error LNK2001: unresolved external symbol _switch_inet_pton switch_core.obj 
				Fehler 3 error LNK2001: unresolved external symbol _switch_inet_pton switch_utils.obj 
				Fehler 4 fatal error LNK1120: 1 unresolved externals D:\download\svn-win32-1.4.5\bin\freeswitch1.0\Release\FreeSwitch.dll 
				Fehler 5 Die Datei "d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\howl-1.0.0" konnte nicht gelöscht werden.
				Stellen Sie sicher, dass die Datei nicht geöffnet oder schreibgeschützt ist. Download HOWL 
				Warnung 6 warning C4244: '+=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 180 
				Warnung 7 warning C4244: '+=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 195 
				Warnung 8 warning C4244: '-=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 224 
				Warnung 9 warning C4244: '-=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\oki_adpcm.c 230 
				Warnung 10 warning C4244: '+=' : conversion from 'int' to 'int16_t', possible loss of data d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 69 
				Fehler 11 error C2143: syntax error : missing ')' before ';' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 447 
				Warnung 12 warning C4552: '*' : operator has no effect; expected operator with side-effect d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 447 
				Warnung 13 warning C4552: '-' : operator has no effect; expected operator with side-effect d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 447 
				Fehler 14 error C2059: syntax error : ')' d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\voipcodecs\src\lpc10_decode.c 447 
				Warnung 15 warning C4718: 'burnStack' : recursive call has no side effects, deleting d:\download\svn-win32-1.4.5\bin\freeswitch1.0\libs\libdingaling\src\sha1.c 542 
				Fehler 16 fatal error LNK1181: cannot open input file '..\..\..\..\release\libvoipcodecs.lib' mod_voipcodecs 
				
				To prevent Fehler (error) 11 and 14 i created some helper variables as i mentioned before.
				 
				Thomas
				 
				
				
________________________________

				Von: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] Im Auftrag von Michael Jerris
				Gesendet: Montag, 21. April 2008 16:37
				An: freeswitch-dev at lists.freeswitch.org
				Betreff: Re: [Freeswitch-dev] lock unlock in PortAudio
				
				
				I fixed the inet_pton and a few other windows build issues.  Please report back if you have any other modules not building right with current trunk. 

				Mike

				On Apr 21, 2008, at 9:48 AM, Anthony Minessale wrote:
				

					please try rev 8130
					
					
					On Mon, Apr 21, 2008 at 7:47 AM, Sluschny, Thomas <Thomas.Sluschny at siemens.com> wrote:
					

					Hi all,
					 
					i use a very old version of freeswitch so i decided to give the version 1.0.pre4 (8124M) a try.
					 
					I use WinXP and VS2005 Prof.
					 
					At first a had to cope with some compile errors:
					1. inet_pton() was not defined, i use Curl_inet_pton() for that now, but what is the "official" way
					2. some lpc10_decode errors, where i had to define some helper variables
					 
					And now my problem:
					i make a call from portaudio to a sip device, 1st call is ok,
					BUT if i do the same call again i hang in mod_PortAudio.c in line 1141:
					switch_mutex_lock(globals.device_lock);

					So it seams that someone doesnt unlock it :(

					Anybody else have seen this problem? Has it to do with the compile error?

					
					 

					Thanx in advance,

					Thomas Sluschny

					 

					_______________________________________________
					Freeswitch-dev mailing list
					Freeswitch-dev at lists.freeswitch.org
					http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
					UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
					http://www.freeswitch.org
					
					




					-- 
					Anthony Minessale II
					
					FreeSWITCH http://www.freeswitch.org/
					ClueCon http://www.cluecon.com/
					
					AIM: anthm
					MSN:anthony_minessale at hotmail.com <mailto:MSN%3Aanthony_minessale at hotmail.com> 
					GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com <mailto:PAYPAL%3Aanthony.minessale at gmail.com> 
					IRC: irc.freenode.net #freeswitch
					
					FreeSWITCH Developer Conference
					sip:888 at conference.freeswitch.org <mailto:sip%3A888 at conference.freeswitch.org> 
					iax:guest at conference.freeswitch.org/888
					googletalk:conf+888 at conference.freeswitch.org <mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org> 
					pstn:213-799-1400 _______________________________________________
					Freeswitch-dev mailing list
					Freeswitch-dev at lists.freeswitch.org
					http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
					UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
					http://www.freeswitch.org
					


				______________________________________________________________________________________________
				Freeswitch-dev mailing list
				Freeswitch-dev at lists.freeswitch.org
				http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
				UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
				http://www.freeswitch.org
				


		_______________________________________________
		Freeswitch-dev mailing list
		Freeswitch-dev at lists.freeswitch.org
		http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
		UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
		http://www.freeswitch.org
		


	_______________________________________________
	Freeswitch-dev mailing list
	Freeswitch-dev at lists.freeswitch.org
	http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
	UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
	http://www.freeswitch.org
	


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20080425/3d761101/attachment-0001.html 


More information about the Freeswitch-dev mailing list