I worked exactly the same subject and I have been working on it for several weeks. When the chunk size is a number that is divisible by the sample rate, there is no problem, but a number like 2093 that I put makes the sound noisy. But this code that you posted does not have my problem and it is a great help for me. Great. Thankful.
ERRATA: 1:50 waveOutSetVolume should use 0xFFFFFFFF, not 0xFFFF. Each word defines the volume of each channel, so 0xFFFF only sets the left channel to full volume and right channel to muted. Apologies for this error; I use laptop speakers most of the time and didn't notice. Some audio aficionados have pointed out that in the audio world, "realtime" means extremely low latency, like
Wow. I was literally just starting to think of all the things I need to learn in c, and when I checked, it was already there! This is a truly amazing tutorial series, I don't think I could find a better series for my use case.
Thanks for the interest 😊 I'm not working on Notemon right now but it's definitely on my mind. The two parts of Notemon were the intention to make my own monster taming rpg that fixes everything I see wrong with the genre, and then all the specific details that I put into that PICO8 version of the game. I would say that first part will definitely materialize when I make that type of game, but I can't say whether I'll make all the same design, world building and such decisions when I do.
It's not glorious, it's not newfandangled, but I'll be dang if WinMM isn't the most stable, reliable, and simple sound interface there is. Also, I encourage you to use stb_vorbis because of the effectiveness of header-only libraries.
I'll gladly echo any recommendation for Sean Barrett's libraries! For my "loading X" tutorials I'll be covering the simplest practical file format; for sound that'll be .wav
Hi, is there a way to learn more about this library? Microsoft has documentations but they do not provide any samples or tutorials. Any tips how to dive deep into this stuff? Thanks :)
Everything I know about WinMM sound is from reading the documentation and experimenting. I wish there were more examples... What are you specifically trying to do? I'm just using it to output a real-time stream of sound samples, and I'm going to do all sound mixing and such in software. Tutorial for that will come along as part of my current series, Making a Game in C 👍
@@UltimaN3rd I am trying to make audio library from scratch so I need pretty much everything. Well I am excited for your tutorial! In the meantime I will cut my way through the docs :D