Ok, so I’ve set myself the task of writing an [offline] waveform display tool. It’s actually part of a bigger tool but that’s inconsequential. After trawling this forum and the FMOD docs, I’m faced with a few questions.

The two preferred methods appear to be…

getWaveData

lock/unlock.

I’m moving more toward the latter, as I understand getWaveData won’t provide me with wave data for the entire file.

My PCM16 .wav file is returning [i:caovm657]wLength[/i:caovm657] as [b:caovm657]38098948[/b:caovm657] after the ‘getLength()’ function. Rather oddly, [b:caovm657]both[/b:caovm657] [i:caovm657]wsPtr1[/i:caovm657] and [i:caovm657]wsPtr2[/i:caovm657] (after being locked) are pointing to the same memory address, and [i:caovm657]wPtrLen1[/i:caovm657] and [i:caovm657]wPtrLen2[/i:caovm657] are [b:caovm657]both also 38098948[/b:caovm657], the same size as [i:caovm657]wLength[/i:caovm657].

So firstly, I figure I must be doing something wrong… :s

I’m not sure I’m getting the length with the right time unit, and I’m only multiplying it by 2 because that’s what the example code did.