-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Hello, there is the error:
When I have to mix the tracks.
Caused by: java.lang.OutOfMemoryError: Failed to allocate a 96510344 byte allocation with 33554432 free bytes and 91MB until OOM
try {
Sound sound1 = start().withFile(new File(Controle.GLOBAL_PATH+"test3novo.wav")).convertIntoSound().stopWithSound();
Sound sound2 = start().withFile(new File(Controle.GLOBAL_PATH+"test3novo.wav")).convertIntoSound().stopWithSound();
//Mix of two sounds using two threads for the file-to-sound conversion
start ().inParallel (
// operations
prepare ().convertIntoSound ().build (),
// timeout in seconds
5,
// classpath resources
sound1, sound2)
.mixAllInOneSound ().exportToFile(new File(Controle.GLOBAL_PATH+"new1.wav"));
}catch (Exception e)
{
Controle.error = e.getMessage();
//Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_SHORT).show();
e.printStackTrace();
}
Can you help me?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels