User Name
Tags:
bold
: [b]bold[/b]
italics
: [i]italics[/i]
emphasis
: [em]emphasis[/em]
underline
: [u]underline[/u]
small
: [small]small[/small]
Link
: [url=http://www.google.com]Link[/url]
[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message
Alright, I guess I'll make a post about this since it doesn't seem anyone is going to do anything about it. Currently, vgmstream calculates the loop-end samples from nibbles incorrectly in idsps and nus3banks. Moosehunter and I noticed this a bit back while looking at some other stuff. The takeaway is that the loop-end sample count ends up being 1 sample too much, so in the case that the idsp was truncated to the loop point, vgmstream won't actually loop it because it thinks the loop-end sample count is greater than the total amount of samples. I'm not sure if it's necessary or not, but I'll post the helper function from Moosehunter's library here that converts nibbles to samples: public const int SamplesPerFrame = 14; public const int NibblesPerFrame = 16; int frames = nibble / NibblesPerFrame; int extraNibbles = nibble % NibblesPerFrame; int samples = SamplesPerFrame * frames; return samples + extraNibbles - (extraNibbles != 0 ? 2 : 0); [small][i]edited 5:46 AM EST January 17, 2017[/i][/small]
HCS Forum Index
Halley's Comet Software
forum source