processing-sound-archive icon indicating copy to clipboard operation
processing-sound-archive copied to clipboard

Cannot play soundfiles greater than a certain length

Open sean369see opened this issue 8 years ago • 1 comments

I seem to have more success in playing files of shorter rather than greater length and file size. No errors in console are produced.

SoundFile soundfileS, soundfileS2, s3, s4, s5, s6;

void setup() {
    size(640,360);
    background(255);

    //Load a soundfile
    soundfileS = new SoundFile(this, "soundS.mp3");
    soundfileS2 = new SoundFile(this, "soundS2.wav");
    s3 = new SoundFile(this, "soundS3.wav");
    s4 = new SoundFile(this, "s4.wav"); 
    s5 = new SoundFile(this, "s5.wav"); 

    //This .mp3 file is 515 seconds long & simply does not play. 
    s6 = new SoundFile(this, "th_full.mp3");

    println(s6.duration() + " " + s6.frames() + " " + s6.sampleRate() + " " + s6.channels());

    s6.play();
}  

The data sound files are th_full.mp3 and a shortened version that does play called th_s.mp3. Can anyone replicate this problem? Windows 10 x64, Processing 3.1.2, Sound 1.3.2

data.zip `

sean369see avatar Aug 17 '16 02:08 sean369see

got the same issue on windows 7 64, processing 3.2.3, sound 1.3.2 for wav and mp3 files, ans still can't find where is the trouble. so i try the minim library 2.2.2 and it's worth: it gives some horrible noise without any report of the original song and the program ending quickly because memory is saturated!!

dragoneo71 avatar Mar 01 '17 00:03 dragoneo71