Have you ever hurt yourself from your own code?
11–20 of 432 posts
Re: Have you ever hurt yourself from your own code?
#12Re: Have you ever hurt yourself from your own code?
#13Re: Have you ever hurt yourself from your own code?
#14It's tethered to a test-stand now.
Re: Have you ever hurt yourself from your own code?
#15> Look at an audio file's waveform before playing it at max volume.
That’s always good advice.
Re: Have you ever hurt yourself from your own code?
#16Is there a reason why you might want to mix endianness within a file format? Wouldn't it just be extremely error prone as demonstrated in the article?
Re: Have you ever hurt yourself from your own code?
#17Re: Have you ever hurt yourself from your own code?
#18Re: Have you ever hurt yourself from your own code?
#19I always keep the volume low enough that a full-amplitude noise wouldn't be anywhere near physically painful to listen to, but then again most of the stuff I listen to is ultra-compressed already...
Of course, the actual bug is that the audio is in units of samples, which are only 1 byte in the case of mono 8-bit format, so treating the file as being 8bps mono when it could be 16bps mono, 8bps stereo (far more subtle difference in the case of byte misalignment), 16bps stereo, or any of a number of other formats is always going to lead to cases where this could occur.
Re: Have you ever hurt yourself from your own code?
#20Is there a reason why you might want to mix endianness within a file format? Wouldn't it just be extremely error prone as demonstrated in the article?
Yeah I was kind of confused about this when I was reading through the spec trying to figure out what went wrong. I wanted to touch on this in the blog post, but I wasn't able to find a good resource explaining the advantage for mixing endianness in a file format.