View Single Post
Old 06-24-2015, 11:23 PM   #28
Tale
Human being with feelings
 
Tale's Avatar
 
Join Date: Jul 2008
Location: The Netherlands
Posts: 3,646
Default

Quote:
Originally Posted by mviljamaa View Post
So it does apply the hamming relative to the audio input file and not the host samples?
Or, equivalently, shifting the sine wave also shifts the data[0]=0.0 point?
Well, only if you also shift the playback cursor, so it starts exactly at the beginning of the item containing the sine wave.

Quote:
Originally Posted by mviljamaa View Post
I tested the code with "static", i.e. not moving any file around. And there it seems to work correctly.
Good.

Quote:
Originally Posted by mviljamaa View Post
This problem is so odd. Like something really depends on the host samples and not the incoming audio, but why it's so?
I don't know how to better explain than I already have:
Quote:
Originally Posted by Tale
This is because immediately after loading your plug-in the host starts processing it, and most hosts will just keeps on processing continuously, whether you start/stop playback or not.
But why should this be a problem anyway? If you want to apply some sort of FFT processing, then exact alignment really doesn't matter.
Tale is offline   Reply With Quote