Advertisement

[java] Java audio (without the MediaFramework)

Started by November 27, 2000 04:40 AM
1 comment, last by bobbin 23 years, 10 months ago
I am using JDK1.1.8 on free BSD platform (with swing 1.1). I need some way (without upgrading to Java 1.2) of loading and displaying audio files (format undefined as yet). The AudioClip won''t do, as i need to be able to start the track @ a defined point (i.e. start the track after its been stopped (@ the stopped point)) and i can''t find any way of getting @ the file data (to plot a graph (the display)). Has anyone come accross any beans, API''s etc. which i''ll do the job?? Thanks Robin.
Robin,

Sorry to say, but without at least the JMF 1.0 you cann ot do this with any sort of reliability. AudioClip interfaces were only meant for small sounds, and you cannot alter the data because it pre-reads the entire file before playing the sound.

I''de recommend atempting to find jmf 1.0 or 2.1 file for your syste, they are already availible for linux x86.

Good luck,
Advertisement
You can actually create an audio clip from an array....

sun.audio has two interfaces for creating looped and none looped sound fron byte arrays!

:-)

This topic is closed to new replies.

Advertisement