51 lines
2.0 KiB
Diff
51 lines
2.0 KiB
Diff
--- java3d-1.5.2/j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/JMainFrame.java 2011-12-27 12:05:12.000000000 +0100
|
|
+++ java3d-1.5.2/j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/JMainFrame.java 2018-09-20 13:53:26.657745810 +0200
|
|
@@ -83,6 +83,8 @@
|
|
import javax.swing.*;
|
|
import java.util.*;
|
|
|
|
+import com.sun.media.sound.JavaSoundAudioClip;
|
|
+
|
|
public class JMainFrame extends JFrame
|
|
implements Runnable, AppletStub, AppletContext {
|
|
|
|
@@ -284,12 +286,7 @@
|
|
// Methods from AppletContext.
|
|
|
|
public AudioClip getAudioClip( URL url ) {
|
|
- // This is an internal undocumented routine. However, it
|
|
- // also provides needed functionality not otherwise available.
|
|
- // I suspect that in a future release, JavaSoft will add an
|
|
- // audio content handler which encapsulates this, and then
|
|
- // we can just do a getContent just like for images.
|
|
- return new sun.applet.AppletAudioClip( url );
|
|
+ return JavaSoundAudioClip.create( url );
|
|
}
|
|
|
|
public Image getImage( URL url ) {
|
|
--- java3d-1.5.2/j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/MainFrame.java 2011-12-27 12:05:12.000000000 +0100
|
|
+++ java3d-1.5.2/j3d-core-utils/src/classes/share/com/sun/j3d/utils/applet/MainFrame.java 2018-09-20 13:53:10.705854603 +0200
|
|
@@ -82,6 +82,8 @@
|
|
import java.io.*;
|
|
import java.util.*;
|
|
|
|
+import com.sun.media.sound.JavaSoundAudioClip;
|
|
+
|
|
/// Run an Applet as an application.
|
|
// <P>
|
|
// Using this class you can add a trivial main program to any Applet
|
|
@@ -333,12 +335,7 @@
|
|
|
|
// Methods from AppletContext.
|
|
public AudioClip getAudioClip( URL url ) {
|
|
- // This is an internal undocumented routine. However, it
|
|
- // also provides needed functionality not otherwise available.
|
|
- // I suspect that in a future release, JavaSoft will add an
|
|
- // audio content handler which encapsulates this, and then
|
|
- // we can just do a getContent just like for images.
|
|
- return new sun.applet.AppletAudioClip( url );
|
|
+ return JavaSoundAudioClip.create( url );
|
|
}
|
|
|
|
public Image getImage( URL url ) {
|