Replies: 1 comment 2 replies
-
It's because your objects are going out of scope and getting destroyed. They're just plain structs. You need to ensure they stay valid. This is mentioned at the top of the documentation. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am recently new to miniaudio, and I am using the default examples to at least, get a sound and familiarize myself with the library to use it properly. My problem is that I actually have the code of the example quite similar to it (you'll see, it should not make any difference... I guess...) but I can't hear any type of sound. All the checkings return MA_SUCCESS, and whenever it should play (ma_device_start), I don't hear anything (and yeah, I have the volume up ^^).
I can provide you the code, but if you need any other information apart, just ask me and I'll provide it as quick as possible.
I'm sorry if it is a dumb mistake, I really can't find why!
// Edit:
The example code provided is the simple_playback one in my code. If you need the other one (simple_playback_sine), just ask!
Beta Was this translation helpful? Give feedback.
All reactions