Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't play sound files #25

Closed
ghost opened this issue Mar 15, 2019 · 1 comment
Closed

Can't play sound files #25

ghost opened this issue Mar 15, 2019 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@ghost
Copy link

ghost commented Mar 15, 2019

every time I try to play an mp3 sound file in processing I get the following error

INFO: Pure Java JSyn from www.softsynth.com, rate = 44100, RT, V16.8.0 (build 463, 2017-10-16)
ArrayIndexOutOfBoundsException: 3

when I try .wav files I get the following error

Sound library error: unable to decode sound file hopping.wav

here's the relevant code:

import processing.sound.*;
SoundFile file;
void setup() {

file=new SoundFile(this,"hopping.wav");
file.play();
}

I double checked, the files are in the sketch's data directory.

I've tried on my desktop Mac and my laptop running windows. Same error on both.

@kevinstadler kevinstadler added the duplicate This issue or pull request already exists label May 3, 2019
@kevinstadler
Copy link
Collaborator

I think your file might be in 8-bit unsigned format which is currently not supported by the sound library, if you convert it to any other WAV encoding it should play (see #15)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

1 participant