You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by da...@apache.org on 2012/05/01 12:02:04 UTC

svn commit: r1332597 - /aries/site/trunk/content/modules/spi-fly.mdtext

Author: davidb
Date: Tue May  1 10:02:03 2012
New Revision: 1332597

URL: http://svn.apache.org/viewvc?rev=1332597&view=rev
Log:
Add description for javax.sound.sampled.AudioSystem

Modified:
    aries/site/trunk/content/modules/spi-fly.mdtext

Modified: aries/site/trunk/content/modules/spi-fly.mdtext
URL: http://svn.apache.org/viewvc/aries/site/trunk/content/modules/spi-fly.mdtext?rev=1332597&r1=1332596&r2=1332597&view=diff
==============================================================================
--- aries/site/trunk/content/modules/spi-fly.mdtext (original)
+++ aries/site/trunk/content/modules/spi-fly.mdtext Tue May  1 10:02:03 2012
@@ -146,7 +146,13 @@ but this requires the following header i
 <tt>SPI-Provider:&nbsp;javax.imageio.spi.ServiceRegistry</tt> on the client
 side you can use <tt>SPI-Consumer:&nbsp;javax.imageio.spi.ServiceRegistry#lookupProviders(java.lang.Class)</tt>
  or <tt>SPI-Consumer:&nbsp;javax.imageio.spi.ServiceRegistry#lookupProviders</tt>
-
+  - **javax.sound.sampled.AudioSystem**: This class uses sun.misc.Service under the covers (via com.sun.media.sound.JDK13Services) 
+which is a predecessor to java.util.ServiceLoader. There is no special treatment for sun.misc.Service
+in SPI Fly (yet), but the AudioSystem.getAudioInputStream() API can be made to work by explicitly listing it in the provider bundle 
+(the one that contains the relevant META-INF/services resources):
+<tt>SPI-Provider:&nbsp;javax.sound.sampled.AudioSystem</tt> on the consumer side you can use
+<tt>SPI-Consumer:&nbsp;javax.sound.sampled.AudioSystem#getAudioInputStream
+</tt>
 
 ##Examples##
 The <tt>spi-fly-examples</tt> directory contains a number of example bundles that can be