<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Looking for Java developers to help me tidy-up an mp3-streaming external</title>
		<atom:link href="http://cycling74.com/forums/topic/looking-for-java-developers-to-help-me-tidy-up-an-mp3-streaming-external-2/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/looking-for-java-developers-to-help-me-tidy-up-an-mp3-streaming-external-2/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 21:01:56 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/looking-for-java-developers-to-help-me-tidy-up-an-mp3-streaming-external-2/#post-53447</guid>
					<title><![CDATA[Looking for Java developers to help me tidy-up an mp3-streaming external]]></title>
					<link>http://cycling74.com/forums/topic/looking-for-java-developers-to-help-me-tidy-up-an-mp3-streaming-external-2/#post-53447</link>
					<pubDate>Sun, 21 Nov 2010 16:53:09 +0000</pubDate>
					<dc:creator>Brico</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;ve made a mxj external that can stream mp3s. It works OKish and you can check it out here:</p>
<p><a href="http://www.vaetxh.com/content/software/mp3play.rar" rel="nofollow">http://www.vaetxh.com/content/software/mp3play.rar</a></p>
<p>But, it&#8217;s probably pretty poorly coded and very inefficient, so I&#8217;m looking for some more experienced Java coders to help me out. Most of the work is done, it just needs some stream-lining.<br />
So if anyone&#8217;s interested in helping to add decent mp3 support to MSP once and for all, give me a shout!</p>
<p>Cheers,</p>
<p>Rob</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/looking-for-java-developers-to-help-me-tidy-up-an-mp3-streaming-external-2/#post-192256</guid>
					<title><![CDATA[Re: Looking for Java developers to help me tidy-up an mp3-streaming external]]></title>
					<link>http://cycling74.com/forums/topic/looking-for-java-developers-to-help-me-tidy-up-an-mp3-streaming-external-2/#post-192256</link>
					<pubDate>Tue, 23 Nov 2010 00:21:39 +0000</pubDate>
					<dc:creator>edward777</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Rob, I&#8217;m interested in improving your code but I have<br />
some problems when compiling, &#8211; RandomAccessFileInputStream cannot be resolved to a type. I think it would help if you would post java source<br />
mainly RandomAccessFileInputStream.java file.</p>
<p>Edward</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/looking-for-java-developers-to-help-me-tidy-up-an-mp3-streaming-external-2/#post-192257</guid>
					<title><![CDATA[Re: Looking for Java developers to help me tidy-up an mp3-streaming external]]></title>
					<link>http://cycling74.com/forums/topic/looking-for-java-developers-to-help-me-tidy-up-an-mp3-streaming-external-2/#post-192257</link>
					<pubDate>Tue, 23 Nov 2010 17:47:41 +0000</pubDate>
					<dc:creator>Brico</dc:creator>

					<description>
						<![CDATA[
						<p>Cheers man! Glad you&#8217;re keen. Here is the source for RandomAccessFileInputStream:</p>
<p>import java.io.*;</p>
<p>public class RandomAccessFileInputStream extends InputStream {<br />
	private RandomAccessFile raf;</p>
<p>	public RandomAccessFileInputStream(File file) throws FileNotFoundException {<br />
		raf = new RandomAccessFile(file, &#8220;r&#8221;);<br />
	}</p>
<p>	/**<br />
	 * Skip ahead in the file by the specified bytes.<br />
	 */<br />
	synchronized public void seek(long bytes) throws IOException {<br />
		raf.seek((int) bytes);<br />
	}</p>
<p>	/**<br />
	 * Skip ahead in the file by the specified bytes.<br />
	 */<br />
	synchronized public void skipForward(long bytes) throws IOException {<br />
		raf.skipBytes((int) bytes);<br />
	}</p>
<p>	/**<br />
	 * Skip backward in the file by the specified bytes.<br />
	 */<br />
	synchronized public void skipBackward(long bytes) throws IOException {<br />
		long pos = raf.getFilePointer() &#8211; bytes;</p>
<p>		if (pos < 0)<br />
			pos = 0;</p>
<p>		raf.seek(pos);<br />
	}</p>
<p>	/**<br />
	 * Returns the current position within the file.<br />
	 */<br />
	public long getPosition() throws IOException {<br />
		return raf.getFilePointer();<br />
	}</p>
<p>	/**<br />
	 * Returns the current position within the file as a percentage String.<br />
	 */<br />
	public String getPercentage() throws IOException {<br />
		int pos = (int) ((((float) raf.getFilePointer()) / ((float) raf<br />
				.length())) * 100);</p>
<p>		if (pos < 10)<br />
			return &#8220;0&#8243; + pos + &#8220;%&#8221;;<br />
		else<br />
			return pos + &#8220;%&#8221;;</p>
<p>	}</p>
<p>	/**<br />
	 * Returns the length of the file in bytes.<br />
	 */<br />
	public long getLength() throws IOException {<br />
		return raf.length();<br />
	}</p>
<p>	// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
	// InputStream methods:<br />
	synchronized public int read() throws IOException {<br />
		return raf.read();<br />
	}</p>
<p>	synchronized public int read(byte[] b) throws IOException {<br />
		return raf.read(b);<br />
	}</p>
<p>	synchronized public int read(byte[] b, int off, int len) throws IOException {<br />
		return raf.read(b, off, len);<br />
	}</p>
<p>	synchronized public long skip(long n) throws IOException {<br />
		long left = raf.length() &#8211; raf.getFilePointer();</p>
<p>		if (n > left)<br />
			n = left;</p>
<p>		return raf.skipBytes((int) n);<br />
	}</p>
<p>	public int available() throws IOException {<br />
		return 0;<br />
	}</p>
<p>	public void close() throws IOException {<br />
		raf.close();<br />
	}</p>
<p>	public void mark(int readlimit) {</p>
<p>	}</p>
<p>	public void reset() throws IOException {</p>
<p>	}</p>
<p>	public boolean markSupported() {<br />
		return false;<br />
	}</p>
<p>}</p>
<p>Good luck and let me know how it goes. If you need any explanations of the code (it isn&#8217;t commented) let me know.</p>
<p>Cheers,</p>
<p>Rob</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/looking-for-java-developers-to-help-me-tidy-up-an-mp3-streaming-external-2/#post-192258</guid>
					<title><![CDATA[Re: Looking for Java developers to help me tidy-up an mp3-streaming external]]></title>
					<link>http://cycling74.com/forums/topic/looking-for-java-developers-to-help-me-tidy-up-an-mp3-streaming-external-2/#post-192258</link>
					<pubDate>Fri, 14 Jan 2011 18:45:07 +0000</pubDate>
					<dc:creator>freeka</dc:creator>

					<description>
						<![CDATA[
						<p>hello,<br />
i tried to launch your mp3play, but i got error and i cant make it work&#8230;<br />
any help?</p>
<p>java.lang.NoClassDefFoundError: mp3play$1<br />
Caused by: java.lang.ClassNotFoundException: mp3play$1<br />
	at com.cycling74.max.MXJClassLoaderImpl.lookupClassData(MXJClassLoaderImpl.java:198)<br />
	at com.cycling74.max.MXJClassLoaderImpl.doLoadClass(MXJClassLoaderImpl.java:111)<br />
	at com.cycling74.max.MXJClassLoaderImpl.loadClass(MXJClassLoaderImpl.java:88)<br />
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)<br />
(mxj~) unable to alloc instance of mp3play</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

