import processing.sound.*;
SoundFile file;
String audioName = "tank shot.wav";
String path;
void setup() {
frameRate(60);
background(0);
size(1500,1500);
file = new SoundFile(this, "Sleigh Ride.mp3");
file.play();
}
Nov 12, 2019 9:44:23 PM com.jsyn.devices.javasound.JavaSoundAudioDevice
INFO: JSyn: default output latency set to 80 msec for Windows 10
1 Like
kll
2
please format your code as posting it into
</> code button
i use processing 3.5.3
on win 10 64bit
and run basic sound lib example with a added mp3 sound file for you,
import processing.sound.*;
SoundFile soundfile;
//String filename = "data/vibraphon.aiff";
String filename = "data/jingle.mp3";
void setup() {
println("load: "+filename);
soundfile = new SoundFile(this,filename);
println("SFSampleRate= " + soundfile.sampleRate() + " Hz");
println("SFSamples= " + soundfile.frames() + " samples");
println("SFDuration= " + soundfile.duration() + " seconds");
soundfile.loop();
}
void draw() {}
and it works.
can see at console:
load: data/jingle.mp3
Nov 13, 2019 12:03:38 PM com.jsyn.devices.javasound.JavaSoundAudioDevice <init>
INFO: JSyn: default output latency set to 80 msec for Windows 10
SFSampleRate= 44100 Hz
SFSamples= 266112 samples
SFDuration= 6.0342855 seconds
1 Like
I also use processing 3.5.3 on windows 10 64 bit
kll
4
pls repair above code posting
and you run my code as posted?
or any problems?
There isn’t like a limit to how long the sound can be right?
kll
6
why you not answer my question?
i make that code example for you to run
and test your system and hardware…
as it runs here well.
I got it work, thanks for your help I figured out why it was just cause I’m dumb
1 Like