<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="2.0">
<channel>
	<title>AMIP SDK Support</title>
	<description>AMIP SDK Support Forum Topics</description>
	<link>http://amip.tools-for.net/board/index.php</link>
	<pubDate>Thu, 09 Sep 2010 08:57:28 +0400</pubDate>
	<ttl>600</ttl>
	<item>
		<title>ac_getSrcPort returns same value as ac_getDestPort?</title>
		<link>http://amip.tools-for.net/board/index.php?showtopic=610</link>
		<guid>http://amip.tools-for.net/board/index.php?showtopic=610</guid>
		<description><![CDATA[Serge, now that getting a long playlist works I have noticed one oddity wih ac_getSrcPort and ac_getDestPort, and possibly also ac_getSrcHost and ac_getDestHost.<br /><br />I modified getplaylist.cpp as follows to demonstrate my problem:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><br />&nbsp;&nbsp;// Here we should have a playlist<br />&nbsp;&nbsp;char title&#91;AC_BUFFER_SIZE&#93;;<br /><br />&nbsp;&nbsp;EnterCriticalSection&#40;&cs_list&#41;;<br />&nbsp;&nbsp;int size = ac_get_plsize&#40;&#41;;<br />&nbsp;&nbsp;for &#40;int i = 0; i &#60; size; i++&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;memset&#40;title, 0, AC_BUFFER_SIZE&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;if &#40;ac_get_title&#40;i, title&#41;&#41; {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf&#40;&#34;%s&#092;n&#34;, title&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;}<br />&nbsp;&nbsp;LeaveCriticalSection&#40;&cs_list&#41;;<br /><br />&nbsp;&nbsp;// Src versus Dest issue<br />&nbsp;&nbsp;char sHost&#91;AC_BUFFER_SIZE&#93;;<br />&nbsp;&nbsp;char dHost&#91;AC_BUFFER_SIZE&#93;;<br />&nbsp;&nbsp;ac_getSrcHost&#40;sHost&#41;;<br />&nbsp;&nbsp;ac_getDestHost&#40;dHost&#41;;<br />&nbsp;&nbsp;printf&#40;&#34;&#092;nac_getSrcPort returned&#58; %d&#092;n&#34;, ac_getSrcPort&#40;&#41;&#41;;<br />&nbsp;&nbsp;printf&#40;&#34;ac_getDestPort returned&#58; %d&#092;n&#34;, ac_getDestPort&#40;&#41;&#41;;<br />&nbsp;&nbsp;printf&#40;&#34;ac_getSrcHost returned&#58; %s&#092;n&#34;, sHost&#41;;<br />&nbsp;&nbsp;printf&#40;&#34;ac_getDestHost returned&#58; %s&#092;n&#34;, dHost&#41;;<br /><br />&nbsp;&nbsp;ac_remove_event_listener&#40;SERVER_HOST, SERVER_PORT&#41;;<br /><!--c2--></div><!--ec2--><br /><br />As mention in ac.h ac_getSrcPort should return 60334 and ac_getDestPort should return 60333, However running getplaylist (after the playlist listing) I get:<br /><br />ac_getSrcPort returned: 60333<br />ac_getDestPort returned: 60333<br />ac_getSrcHost returned: 127.0.0.1<br />ac_getDestHost returned: 127.0.0.1<br /><br />Any idea why both Src and Dest are the same?<br /><br />Sorry about this, but I promise this is the only other issue I've found  <img src="http://amip.tools-for.net/board/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> <br /><br />Thanks, Jdh]]></description>
		<pubDate>Wed, 24 Mar 2010 03:30:18 +0300</pubDate>
		<author>jdh</author>
	</item>
	<item>
		<title>getplaylist fails with iTunes v9</title>
		<link>http://amip.tools-for.net/board/index.php?showtopic=602</link>
		<guid>http://amip.tools-for.net/board/index.php?showtopic=602</guid>
		<description><![CDATA[Hi,<br /><br />I'm using AMIP SDK v1.4, but am unable to get a playlist when using iTunes v9. Even the supplied getplaylist example fails in:<br /><br />      int code = ac_get_pl();<br />      LeaveCriticalSection(&cs_list);<br />      if (code != AC_ERR_NOERROR) {<br />        printf("Failed to get playlist: %d&#092;n", code);<br /><br />It reports: Failed to get playlist: 3<br /><br />When using WinAmp or foobar2000 then getplaylist works just fine!<br /><br />Just wondering if I'm doing something wrong or if it simply does not work with iTunes v9.<br /><br />Thanks, Jdh]]></description>
		<pubDate>Sat, 20 Feb 2010 04:50:12 +0300</pubDate>
		<author>jdh</author>
	</item>
	<item>
		<title>Events list</title>
		<link>http://amip.tools-for.net/board/index.php?showtopic=465</link>
		<guid>http://amip.tools-for.net/board/index.php?showtopic=465</guid>
		<description><![CDATA[As the title says. Can anyone point me a link or some sort of info about events that amip generates?<br />To be more specific I want to finish amip mbot script that will change away msg to currently played song.<br /><br />Thanks<br />Lucas<br /><br />edit:<br />found those in java files<br />public static final int AC_EVT_PLAY = 0x0001;<br />public static final int AC_EVT_START = 0x0008;<br />public static final int AC_EVT_CHANGE = 0x0080;<br />public static final int AC_EVT_PLCHANGE = 0x0100;<br />public static final int AC_EVT_PLREADY = 0x0200;<br />can you please tell me meaning of those?<br />not sure which one will be the proper one for my script]]></description>
		<pubDate>Thu, 09 Oct 2008 16:43:58 +0400</pubDate>
		<author>tobee</author>
	</item>
	<item>
		<title>Error connecting to AMIP Server (Using PHP)</title>
		<link>http://amip.tools-for.net/board/index.php?showtopic=442</link>
		<guid>http://amip.tools-for.net/board/index.php?showtopic=442</guid>
		<description><![CDATA[Hey there.<br />My problem is that I'm trying to use the example shownp.php script and well... Every time I get the error message above (The topic title)<br />Any ideas on why I'm getting this error message?<br /><br />Heretic121]]></description>
		<pubDate>Thu, 31 Jul 2008 21:51:24 +0400</pubDate>
		<author>Heretic121</author>
	</item>
	<item>
		<title>Help with output</title>
		<link>http://amip.tools-for.net/board/index.php?showtopic=440</link>
		<guid>http://amip.tools-for.net/board/index.php?showtopic=440</guid>
		<description><![CDATA[Hi. I am using AMIP with mIRC 6.31 and it works great.<br />I just did a mistake and managed to delete the output in options so I don't know what to write to make it work..  I want to have back the one saying: Song + [length/kbps/kHz]<br />It was displayed in the first tab.<br /><br />I tried to reinstall but that didn't work.<br /><br /> <img src="http://amip.tools-for.net/board/style_emoticons/default/unsure.gif" style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" />]]></description>
		<pubDate>Fri, 25 Jul 2008 18:19:27 +0400</pubDate>
		<author>gnippit</author>
	</item>
	<item>
		<title>PHP Socket functions</title>
		<link>http://amip.tools-for.net/board/index.php?showtopic=421</link>
		<guid>http://amip.tools-for.net/board/index.php?showtopic=421</guid>
		<description><![CDATA[Is it possible to use PHP socket functions to receive AMIP information?<br />I am able to connect to the AMIP server through PHP but I don't know what I need to send through sockets to get answers from AMIP server.<br /><br />P.S.<br />My english grammar may not be perfect, but I hope you can still understand what I'm looking for <img src="http://amip.tools-for.net/board/style_emoticons/default/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" />]]></description>
		<pubDate>Thu, 03 Jul 2008 15:10:36 +0400</pubDate>
		<author>VesQ</author>
	</item>
	<item>
		<title>SDK Delphi component</title>
		<link>http://amip.tools-for.net/board/index.php?showtopic=420</link>
		<guid>http://amip.tools-for.net/board/index.php?showtopic=420</guid>
		<description><![CDATA[Hello Serge. This is Chris, probably better known to you as blert. I wrote the Delphi7 component for your SDK. I've been MIA for a while but am slowly trying to get back into things.<br /><br />I came to download the latest and greatest versions of AMIP and the SDK and noticed that there have been some changes to the SDK that need to be applied to the Delphi component. I made all the changes and fired up my example application and the server is not loading. <img src="http://amip.tools-for.net/board/style_emoticons/default/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> Using FB2K v0.9.5.3 with all the latest AMIP stuff. All settings seem to be correct. Am I missing something that I have forgotten in my long absence?<br /><br />Update:<br />I commented out all server stuff from my example appication to test just client stuff and it seems none of it is working. Am I missing something in FB2K that I need to turn on?]]></description>
		<pubDate>Fri, 27 Jun 2008 21:54:18 +0400</pubDate>
		<author>blert</author>
	</item>
	<item>
		<title>Creating dynamic playlists</title>
		<link>http://amip.tools-for.net/board/index.php?showtopic=326</link>
		<guid>http://amip.tools-for.net/board/index.php?showtopic=326</guid>
		<description><![CDATA[Hello,<br /><br />I have songs in the hard drive.  <br /><br />I've successfully updated the SQL server database to store the paths, tags, and file names.  <br /><br />Using the database file names and path, I want to create a playlist and play/enqueue them in WinAmp.<br /><br />Would AMIP be feasible to do that kind of job?  Also, I'm using the following plug in.<br /><br /><a href="http://www.oddsock.org/tools/gen_songrequester/" target="_blank"><a href="http://www.oddsock.org/tools/gen_songrequester/" target="_blank">http://www.oddsock.org/tools/gen_songrequester/</a></a><br /><br />Thanks<br /><br />HyperX.]]></description>
		<pubDate>Thu, 08 Nov 2007 17:59:25 +0300</pubDate>
		<author>HyperX</author>
	</item>
	<item>
		<title>Access AMIP socket server from *nix</title>
		<link>http://amip.tools-for.net/board/index.php?showtopic=316</link>
		<guid>http://amip.tools-for.net/board/index.php?showtopic=316</guid>
		<description><![CDATA[Hi, I am interested in trying to access AMIP from *nix. It appears that AMIP server creates a TCP socket connection that should be able to be accessed remotely. Can you give some indication on how this could be done?<br /><br />I've tried with socket and telnet, but both indicate that the AMIP hosting machine refuses the connection.<br /><br />My setup:<br /><br />[WIN]<br />AMIP Server:40581<br /><br />[NIX]<br />Client access:<br />&#96;telnet WIN 40581&#96;<br />&#96;socket WIN 40581&#96;<br /><br />Thanks]]></description>
		<pubDate>Wed, 10 Oct 2007 06:03:35 +0400</pubDate>
		<author>uplate</author>
	</item>
	<item>
		<title>Multiple server with RPC</title>
		<link>http://amip.tools-for.net/board/index.php?showtopic=268</link>
		<guid>http://amip.tools-for.net/board/index.php?showtopic=268</guid>
		<description><![CDATA[Hi,<br /><br />For a C# software, I need tu use AMIP both with Winamp and foobar2000 (running at the same time). But with RPC, I can only start one server at a time (on localhost).<br /><br />How can I start an AMIP server on each player and avoid conflicts between them ? I need to switch monitoring as user request.<br /><br />Thanks<br /><br />]]></description>
		<pubDate>Tue, 26 Jun 2007 00:47:54 +0400</pubDate>
		<author>Cyber Sinh</author>
	</item>
	<item>
		<title>Getting started with the SDK</title>
		<link>http://amip.tools-for.net/board/index.php?showtopic=135</link>
		<guid>http://amip.tools-for.net/board/index.php?showtopic=135</guid>
		<description><![CDATA[Hi<br /><br />I've just started to play with the AMIP SDK and I'm having problems getting it to do anything.<br /><br />I have AMIP running in winamp, its changing my Messenger np message, and also creating a file, so it's running ok. I can also telnet to port 60333 on my pc and that gets connected, but doesn't do much else when I type stuff.<br /><br />However when I use the SDK the ac_init_client returns 1, but the ac_eval returns 3 (CONNECTIONFAILED).<br /><br />Here is the code i am using, this was built using VS2005, it's simple console app.<br /><br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->#include &#34;stdafx.h&#34;<br />#include &#60;windows.h&#62;<br />#include &#60;stdio.h&#62;<br />#include &#60;conio.h&#62;<br />#include &#34;ac.h&#34;<br /><br />#pragma comment&#40;lib, &#34;ac.lib&#34;&#41;<br /><br /><br />int _tmain&#40;int argc, _TCHAR* argv&#91;&#93;&#41;<br />{<br />&nbsp;&nbsp;&nbsp;&nbsp;int err = ac_init_client&#40;&#34;127.0.0.1&#34;, 60333, 1000, 5, 1&#41;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;if&#40;err == 1&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;char np&#91;2048&#93;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;err = ac_eval&#40;&#34;var_name&#34;,np&#41;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&#40;err == AC_ERR_NOERROR&#41;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf&#40;&#34;Now playing %s&#092;n&#34;, np&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;printf&#40;&#34;Error&#58; %d&#092;n&#34;, err&#41;;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;ac_uninit&#40;&#41;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;_getch&#40;&#41;;<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;return 0;<br />}<!--c2--></div><!--ec2--><br /><br />Can anyone see anything obviously wrong? Do I need a specific version of AMIP to work with the SDK? (I'm using 2.53 beta at present)<br /><br />I've also downloaded the java sdk and tried the example bat file, that also throws a ConnectionFailedException so I'm guessing it's not to do with my code but how I've got AMIP set up or how the SDK is set up... can anyone point me in the right direction?<br /><br />Thanks<br /><br />Matt]]></description>
		<pubDate>Mon, 14 Aug 2006 12:08:19 +0400</pubDate>
		<author>DJMatty</author>
	</item>
</channel>
</rss>