can’t loadsound a hour long mp3

Hello ! I have a two hours, 46Mb mp3 file I would like to load with p5.

chromium chrashes when loading the page. firefox manages to load the page, but I get the size and count too large error when I play it. With a 21Mb mp3 file, firefox manages to load and play it correctly. but Chromium still crashes.

is there something I can do to make that work ? maybe load my audio file differently ? is there a way to load only a part of it, instead of everything at once ?

function preload()
{
    song = loadSound("audio/160811_001.mp3");
}

function setup() {
    canvas = createCanvas(100,1000);
    playPauseButton = createButton("Play");
    playPauseButton.parent(select("#player"));
    playPauseButton.mousePressed(togglePlay);
}
Sign In or Register to comment.