mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-04-14 14:43:33 +02:00
Umbennung getResourceStream->getinputStream
This commit is contained in:
@@ -7,7 +7,6 @@ import schule.ngb.zm.util.Validator;
|
|||||||
import javax.sound.sampled.*;
|
import javax.sound.sampled.*;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wiedergabe kurzer Soundclips, die mehrmals wiederverwendet werden.
|
* Wiedergabe kurzer Soundclips, die mehrmals wiederverwendet werden.
|
||||||
@@ -245,7 +244,7 @@ public class Sound implements Audio {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
InputStream in = ResourceStreamProvider.getResourceStream(audioSource);
|
InputStream in = ResourceStreamProvider.getInputStream(audioSource);
|
||||||
if( in != null ) {
|
if( in != null ) {
|
||||||
AudioInputStream audioStream = AudioSystem.getAudioInputStream(in);
|
AudioInputStream audioStream = AudioSystem.getAudioInputStream(in);
|
||||||
AudioFormat format = audioStream.getFormat();
|
AudioFormat format = audioStream.getFormat();
|
||||||
|
|||||||
Reference in New Issue
Block a user