tag:blogger.com,1999:blog-7225698277211840079.post3054521944957712834..comments2019-07-16T05:24:40.934-07:00Comments on bjorg: Int->Float->Int: It's a jungle out there!Bjorn Rochehttp://www.blogger.com/profile/17072425815152893296noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7225698277211840079.post-5414064975833435402011-06-28T08:56:01.428-07:002011-06-28T08:56:01.428-07:00@Domain: sorry I missed your comment. can you send...@Domain: sorry I missed your comment. can you send me a link to verify this?Bjorn Rochehttps://www.blogger.com/profile/17072425815152893296noreply@blogger.comtag:blogger.com,1999:blog-7225698277211840079.post-38492822987397129942011-05-30T13:14:09.180-07:002011-05-30T13:14:09.180-07:00Update/Correction: JACK has used symmetrical (&quo...Update/Correction: JACK has used symmetrical (&quot;transparent&quot;) conversions for more than a year now (using 0x7fffff).Domainhttps://www.blogger.com/profile/18035930367683866712noreply@blogger.comtag:blogger.com,1999:blog-7225698277211840079.post-80810345997984700522009-12-06T20:11:18.029-08:002009-12-06T20:11:18.029-08:00Thanks for the correction brbrofsl. I made the fix...Thanks for the correction brbrofsl. I made the fix about libsndfile. Indeed, I had my constants reversed. As for rounding, libsndfile and many of these techniques assume some kind of sensible rounding for bit-transparency to work, as noted at the bottom of my table.Bjorn Rochehttps://www.blogger.com/profile/17072425815152893296noreply@blogger.comtag:blogger.com,1999:blog-7225698277211840079.post-4263352323226266512009-12-04T15:52:45.606-08:002009-12-04T15:52:45.606-08:00The libsndfile FAQ seems to show
Int to Float: in...The libsndfile FAQ seems to show<br /><br />Int to Float: integer/0x8000<br /><br />Float to Int: float*0x7FFF<br /><br />Float to Int in libsndfile also seems to use the lrintf() function rather than just an integer cast or a truncation.<br /><br />http://www.mega-nerd.com/libsndfile/FAQ.html#Q010brbrofsvlhttps://www.blogger.com/profile/01364152470785156121noreply@blogger.com