Is there a WMA spi for javasound?

I pushed a bit on the internet, but I had no luck. Does anyone know if it exists?

+5
source share
4 answers

Apparently the answer is no. Could not find anything there.

+1
source

Use the Quicktime API to complete this task,

I solved my problem using this quickTime.jar

You can download this utility from apple.com.

0
source

, .jar, WMA , , WMA , , . SPI, , , , , , .

. JAVE , , , , , wma . JAVE , Encoder.

try {
    EncodingAttributes attr = new EncodingAttributes();
    attr.setAudioAttributes(new AudioAttributes()); //default values
    attr.setVideoAttributes(new VideoAttributes()); //default values
    attr.setFormat("wav"); //this is the target format I am trying to achieve
    //b.wma is a file I brought to the project
    File wma = new File("Resources\\b.wma");
    //target.wav is the created file I'll achieve after the encode, which gets used to  make a Clip
    File target = new File("Resources\\target.wav");
    Encoder encoder = new Encoder();
    //this will show you all supported encoding / decoding formats
    //String[] list = encoder.getSupportedEncodingFormats();
    //String[] list = encoder.getSupportedDecodingFormats()
    encoder.encode(wma, target, attr);
    AudioInputStream is = AudioSystem.getAudioInputStream(target);
    Clip clip = AudioSystem.getClip();
    clip.open(is);
    clip.setFramePosition(0);
    clip.start();

} catch (IllegalArgumentException | EncoderException e) {
    e.printStackTrace();
} catch (UnsupportedAudioFileException e) {
    e.printStackTrace();
} catch (IOException e) {
    e.printStackTrace();
} catch (LineUnavailableException e) {
    e.printStackTrace();
}
0

Windows 7 , MFSampledSP.

, Windows, FFSampledSP .

0

All Articles