jakeHaasBlog / Fly-a-ray

A minimal old-school ray casting game
GNU General Public License v3.0
1 stars 0 forks source link

Cannot access YSE sample rate #7

Open jakeHaasBlog opened 3 years ago

jakeHaasBlog commented 3 years ago

We need to know the sample rate of YSE in order to know the length of sounds in milliseconds

jakeHaasBlog commented 3 years ago

This affects SoundBite and LoopingSound

jakeHaasBlog commented 3 years ago

Right now we are using a quick fix where we just use a constant that I calculated to be correct for the explosion sound effect. According to the comments in the YSE source code there used to be a macro that defined the sample rate so this fix may not need to be changed for our purposes. I would still like to access it the intended way but I cannot for the life of me figure out how. YSE does not have comprehensive documentation.