Subject: sun.audio Java 9
From: Markus Koschany <[email-masked]>
Date: Sun, 18 Mar 2018 00:24:38 +0100

sun.audio API was removed with Java 9.

Forwarded: no
---
 src/com/fluendo/plugin/AudioSinkSA.java | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/com/fluendo/plugin/AudioSinkSA.java b/src/com/fluendo/plugin/AudioSinkSA.java
index 8880a16..b17e7be 100644
--- a/src/com/fluendo/plugin/AudioSinkSA.java
+++ b/src/com/fluendo/plugin/AudioSinkSA.java
@@ -19,7 +19,6 @@
 package com.fluendo.plugin;
 
 import java.io.*;
-import sun.audio.*;
 import com.fluendo.utils.*;
 
 public class AudioSinkSA extends AudioSink
@@ -90,29 +89,29 @@ public class AudioSinkSA extends AudioSink
   }
 
   private class RingReader extends InputStream {
-    private AudioStream stream;
+    //private AudioStream stream;
     private RingBufferSA ringBuffer;
 
     public RingReader(RingBufferSA rb) {
       ringBuffer = rb;
       try {
         headerPos = 0;
-        stream = new AudioStream(this);
+        //stream = new AudioStream(this);
       }
       catch (Exception e) {
         e.printStackTrace();
       }
     }
     public synchronized boolean play () {
-      AudioPlayer.player.start(stream);
+      //AudioPlayer.player.start(stream);
       return true;
     }
     public synchronized boolean pause () {
-      AudioPlayer.player.stop(stream);
+      //AudioPlayer.player.stop(stream);
       return true;
     }
     public synchronized boolean stop () {
-      AudioPlayer.player.stop(stream);
+      //AudioPlayer.player.stop(stream);
       return true;
     }
     public int read() throws IOException {