Closed benstigsen closed 2 years ago
This is on which platform?
Linux, specifically Pop!_OS 22.04
Okay cool and it’s using the Alsa backend right? That backend is buggy and I recommend trying the SDL2 backend instead. Can you confirm which you’re using?
I tried loading up and playing your wav file on Windows without any issues. The only thing I could think of for your case, besides a potential Alsa implementation bug, is that the audio file path you provided isn't quite correct, so the the audio samples are NULL causing a crash.
Going to close this for now, assuming you’ve lost interest. Please re-open or comment here if you’d like to continue!
I'm really not sure what's happening. So I downloaded
piano2.wav
from https://www.kozco.com/tech/soundtests.htmlUsing this with the tigr library I get an error. This is the full code:
If I remove
cs_insert_sound(ctx, &piano_instance);
then it shows the screen and everything, but doesn't play any audio of course.My project structure looks like this:
I am not sure what's happening. The sample rate for the audio is 48k Hz. I have a feeling it may be related to the context window handle? I'm not too experienced with C debugging, so not sure how to go about it. But if someone could verify, that would be awesome.