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

A novice problem #2

Open
ManiacLook opened this issue Sep 4, 2021 · 1 comment
Open

A novice problem #2

ManiacLook opened this issue Sep 4, 2021 · 1 comment

Comments

@ManiacLook
Copy link

I load wav files in ofApp.cpp, but when I run the program, there is no sound.
image
image

@autotel
Copy link
Owner

autotel commented Sep 9, 2021

Hey! Thanks for the interest :)

It's hard to tell, since many things could be happening, but I know how to help.

Make sure that the files are where the program expects them to be.

Run the program from command line. It's going to tell you where it is looking for the files. An example of failure:

image

An example of the file being in the right place:

[notice ] Reading file /home/user/openFrameworks/apps/myApps/openFrameworks-Granular-1/bin/data/336679__gregstermatic__jazz-bass-a-7.wav

Where is the file supposed to go?

in a folder named "data", which is on the same folder as the executable file.

image

Make sure the files are in the right format

Namely, PCM wav. If you have the file in a wrong format you would get something like:

[ error ] File format should be PCM, sample file failed to load.

If that's the case, open the wav file on audacity and export it to PCM wav. (probably 16 bits, but I'm not sure)

Let me know how it goes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants