Coder Social home page Coder Social logo

Comments (7)

mbmosher avatar mbmosher commented on September 28, 2024

Also receiving the same error after trying to save() 5 audio files sequentially with AudioRecorder.

from minim.

ddf avatar ddf commented on September 28, 2024

This sounds like the same thing as Issue #78 . Try grabbing the jar files from here and replacing the installed version you are using in Processing:

https://github.com/ddf/Minim/tree/master/library

For AudioRecorder, you must call close() on the object returned by save(). The method saves the audio to disk and then immediately opens and returns a stream you can play, but this was a poor design decision in hindsight.

from minim.

mbmosher avatar mbmosher commented on September 28, 2024

Hmm, well I was actauly able to bypass the issue by switching all of my AudioPlayers to FilePlayers. Or rather, I only ever had one of either and was continuously loading new files into it. Switching to FilePlayer and un/patching(out) before and after every new fileLoad seemed to get past the JavaSound Minim Error. But now I'll be on the look out for the #78 memory leak error. So I'm not sure that this issue is actually related to #78.

from minim.

ddf avatar ddf commented on September 28, 2024

Ok, good to know, we'll keep this open.

from minim.

elias-mfe avatar elias-mfe commented on September 28, 2024

I am getting this too - a sound toy with 32 'tracks' like a drum machine - each has a dedicated audioplayer on a single minim instance (all populated in setup). Loads 31 files and fails on the 32nd one (even if I swap the order around) and get a null pointer exception when I try to play any of them... Same null pointer behaviour when running your examples so not code or file specific (and it all works using Processing.sound until the audio goes to hell after 10 min or so). OP behaviour suggests a memory issue? Null pointer suggests a version issue on a dependent library?

from minim.

elias-mfe avatar elias-mfe commented on September 28, 2024

==== JavaSound Minim Error ====
==== Unable to return a SourceDataLine: unsupported format - PCM_SIGNED 44100.0 Hz, 24 bit, stereo, 6 bytes/frame, little-endian

==== JavaSound Minim Error ====
==== Unable to return a SourceDataLine: unsupported format - PCM_SIGNED 44100.0 Hz, 24 bit, stereo, 6 bytes/frame, little-endian

==== JavaSound Minim Error ====
==== Unable to return a SourceDataLine: unsupported format - PCM_SIGNED 44100.0 Hz, 24 bit, stereo, 6 bytes/frame, little-endian

pressed
java.lang.ArrayIndexOutOfBoundsException: -1
at ddf.minim.MultiChannelBuffer.getSample(MultiChannelBuffer.java:125)
at ddf.minim.ugens.Sampler$Trigger.generate(Sampler.java:284)
at ddf.minim.ugens.Sampler.uGenerate(Sampler.java:214)
at ddf.minim.UGen.tick(UGen.java:500)
at ddf.minim.ugens.Summer.uGenerate(Summer.java:142)
at ddf.minim.UGen.tick(UGen.java:500)
at ddf.minim.AudioOutput$SampleGenerator.generate(AudioOutput.java:111)
at ddf.minim.javasound.JSAudioOutput.readSignal(JSAudioOutput.java:119)
at ddf.minim.javasound.JSAudioOutput.run(JSAudioOutput.java:70)
ArrayIndexOutOfBoundsException: -1
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help ? Troubleshooting.

from minim.

elias-mfe avatar elias-mfe commented on September 28, 2024

The 3 files are commercial samples in WAV format and are working in Processing using processing.sound. JRE at C:\Program Files (x86)\Java\jre1.8.0_311\ . I looked for libpulse-java.so and pulse-java.jar and sound.properties as per https://importgeek.wordpress.com/tag/little-endian-not-supported/ . Was wondering if they are part of the JDK (which I do not have) rather than JRE? Just tried to install JDK now and that did not fix the issue. Unfortunately Java is not a language I ever plan to use (outside of Processing and Minim, both of which I plan to use a lot) :-)

from minim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.