Permalink
Browse files

Changed buffering method. Auto-updating no longer configurable.

  • Loading branch information...
finnkuusisto committed Mar 3, 2012
1 parent dd87ccd commit 8a1ba027e26c1238aea1cbb00ee55c3681336270
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
All Classes
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
All Classes
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
Constant Field Values
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
Deprecated List
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
API Help
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
View
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
Index
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="./stylesheet.css" TITLE="Style">
@@ -148,15 +148,10 @@
<DL>
<DT><A HREF="./kuusisto/tinysound/TinySound.html#init()"><B>init()</B></A> -
Static method in class kuusisto.tinysound.<A HREF="./kuusisto/tinysound/TinySound.html" title="class in kuusisto.tinysound">TinySound</A>
-<DD>Initialize the AudioSystem with the default update rate of 40Hz and
- auto-updating on.
-<DT><A HREF="./kuusisto/tinysound/TinySound.html#init(int, boolean)"><B>init(int, boolean)</B></A> -
+<DD>Initialize the AudioSystem with the default update rate of 100Hz.
+<DT><A HREF="./kuusisto/tinysound/TinySound.html#init(int)"><B>init(int)</B></A> -
Static method in class kuusisto.tinysound.<A HREF="./kuusisto/tinysound/TinySound.html" title="class in kuusisto.tinysound">TinySound</A>
-<DD>Initialize the AudioSystem with a desired update rate and desired
- auto-update setting.
-<DT><A HREF="./kuusisto/tinysound/TinySound.html#isAutoUpdating()"><B>isAutoUpdating()</B></A> -
-Static method in class kuusisto.tinysound.<A HREF="./kuusisto/tinysound/TinySound.html" title="class in kuusisto.tinysound">TinySound</A>
-<DD>Determine whether the TinySound is set to auto-update.
+<DD>Initialize the AudioSystem with a desired update rate.
</DL>
<HR>
<A NAME="_K_"><!-- --></A><H2>
@@ -357,10 +352,6 @@
Static method in class kuusisto.tinysound.<A HREF="./kuusisto/tinysound/TinySound.html" title="class in kuusisto.tinysound">TinySound</A>
<DD>Write a buffer of audio data to the speakers and fill the audio buffer
for the next update.
-<DT><A HREF="./kuusisto/tinysound/TinySound.html#update(boolean)"><B>update(boolean)</B></A> -
-Static method in class kuusisto.tinysound.<A HREF="./kuusisto/tinysound/TinySound.html" title="class in kuusisto.tinysound">TinySound</A>
-<DD>Write a buffer of audio data to the speakers and fill the audio buffer
- for the next update as specified.
<DT><A HREF="./kuusisto/tinysound/internal/UpdateRunner.html" title="class in kuusisto.tinysound.internal"><B>UpdateRunner</B></A> - Class in <A HREF="./kuusisto/tinysound/internal/package-summary.html">kuusisto.tinysound.internal</A><DD>The UpdateRunner class implements Runnable and is what performs automatic
updates of the TinySound system.<DT><A HREF="./kuusisto/tinysound/internal/UpdateRunner.html#UpdateRunner(int)"><B>UpdateRunner(int)</B></A> -
Constructor for class kuusisto.tinysound.internal.<A HREF="./kuusisto/tinysound/internal/UpdateRunner.html" title="class in kuusisto.tinysound.internal">UpdateRunner</A>
View
@@ -2,7 +2,7 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc on Tue Feb 28 21:38:16 CST 2012-->
+<!-- Generated by javadoc on Sat Mar 03 12:10:31 CST 2012-->
<TITLE>
Generated Documentation (Untitled)
</TITLE>
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:30 CST 2012 -->
<TITLE>
Music
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
Sound
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
TinySound
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style">
@@ -103,8 +103,7 @@ <H2>
TinySound is the main class of the TinySound system. In order to use the
TinySound system, it must be initialized. After that, Music and Sound
objects can be loaded and used. When finished with the TinySound system, it
- must be shutdown. Shutdown is especially important if the system has been
- initialized to update automatically.
+ must be shutdown.
<P>
<P>
@@ -171,26 +170,15 @@ <H2>
<TD><CODE><B><A HREF="../../kuusisto/tinysound/TinySound.html#init()">init</A></B>()</CODE>
<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the AudioSystem with the default update rate of 40Hz and
- auto-updating on.</TD>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the AudioSystem with the default update rate of 100Hz.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../kuusisto/tinysound/TinySound.html#init(int, boolean)">init</A></B>(int&nbsp;updateRate,
- boolean&nbsp;autoUpdate)</CODE>
+<TD><CODE><B><A HREF="../../kuusisto/tinysound/TinySound.html#init(int)">init</A></B>(int&nbsp;updateRate)</CODE>
<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the AudioSystem with a desired update rate and desired
- auto-update setting.</TD>
-</TR>
-<TR BGCOLOR="white" CLASS="TableRowColor">
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>static&nbsp;boolean</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../kuusisto/tinysound/TinySound.html#isAutoUpdating()">isAutoUpdating</A></B>()</CODE>
-
-<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determine whether the TinySound is set to auto-update.</TD>
+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the AudioSystem with a desired update rate.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
@@ -273,15 +261,6 @@ <H2>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a buffer of audio data to the speakers and fill the audio buffer
for the next update.</TD>
</TR>
-<TR BGCOLOR="white" CLASS="TableRowColor">
-<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
-<CODE>static&nbsp;void</CODE></FONT></TD>
-<TD><CODE><B><A HREF="../../kuusisto/tinysound/TinySound.html#update(boolean)">update</A></B>(boolean&nbsp;fillNextBuffer)</CODE>
-
-<BR>
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Write a buffer of audio data to the speakers and fill the audio buffer
- for the next update as specified.</TD>
-</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
@@ -348,30 +327,27 @@ <H2>
<PRE>
public static void <B>init</B>()</PRE>
<DL>
-<DD>Initialize the AudioSystem with the default update rate of 40Hz and
- auto-updating on. This is probably sufficient for most users.
+<DD>Initialize the AudioSystem with the default update rate of 100Hz. This
+ is probably sufficient for most users.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
-<A NAME="init(int, boolean)"><!-- --></A><H3>
+<A NAME="init(int)"><!-- --></A><H3>
init</H3>
<PRE>
-public static void <B>init</B>(int&nbsp;updateRate,
- boolean&nbsp;autoUpdate)</PRE>
+public static void <B>init</B>(int&nbsp;updateRate)</PRE>
<DL>
-<DD>Initialize the AudioSystem with a desired update rate and desired
- auto-update setting. The AudioSystem will attempt to allocate an audio
- buffer that is most appropriate for the specified update rate. If the
- AudioSystem is not set to auto-update, the user must update the
- AudioSystem at the specified update rate.
+<DD>Initialize the AudioSystem with a desired update rate. The AudioSystem
+ will attempt to allocate an audio buffer that is appropriate for the
+ specified update rate.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>updateRate</CODE> - the desired update rate of the AudioSystem, in updates
- per second<DD><CODE>autoUpdate</CODE> - true if auto-updating is desired</DL>
+ per second</DL>
</DD>
</DL>
<HR>
@@ -403,50 +379,21 @@ <H2>
</DL>
<HR>
-<A NAME="isAutoUpdating()"><!-- --></A><H3>
-isAutoUpdating</H3>
-<PRE>
-public static boolean <B>isAutoUpdating</B>()</PRE>
-<DL>
-<DD>Determine whether the TinySound is set to auto-update.
-<P>
-<DD><DL>
-
-<DT><B>Returns:</B><DD>true if the TinySound is set to auto-update</DL>
-</DD>
-</DL>
-<HR>
-
<A NAME="update()"><!-- --></A><H3>
update</H3>
<PRE>
public static void <B>update</B>()</PRE>
<DL>
<DD>Write a buffer of audio data to the speakers and fill the audio buffer
- for the next update. This or the other update method must be called
- regularly if not auto-updating.
+ for the next update. TinySound users shouldn't concern themselves with
+ this method.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
-<A NAME="update(boolean)"><!-- --></A><H3>
-update</H3>
-<PRE>
-public static void <B>update</B>(boolean&nbsp;fillNextBuffer)</PRE>
-<DL>
-<DD>Write a buffer of audio data to the speakers and fill the audio buffer
- for the next update as specified. This or the other update method must
- be called regularly if not auto-updating.
-<P>
-<DD><DL>
-<DT><B>Parameters:</B><DD><CODE>fillNextBuffer</CODE> - true if the next audio buffer should be filled</DL>
-</DD>
-</DL>
-<HR>
-
<A NAME="loadMusic(java.lang.String)"><!-- --></A><H3>
loadMusic</H3>
<PRE>
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
Mixer
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
MusicReference
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
SoundReference
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
UpdateRunner
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
@@ -2,12 +2,12 @@
<!--NewPage-->
<HTML>
<HEAD>
-<!-- Generated by javadoc (build 1.6.0_11) on Tue Feb 28 21:38:16 CST 2012 -->
+<!-- Generated by javadoc (build 1.6.0_11) on Sat Mar 03 12:10:31 CST 2012 -->
<TITLE>
kuusisto.tinysound.internal
</TITLE>
-<META NAME="date" CONTENT="2012-02-28">
+<META NAME="date" CONTENT="2012-03-03">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
Oops, something went wrong.

0 comments on commit 8a1ba02

Please sign in to comment.