PythonPlugin passes the python pluginStartup function a value it pulls from its getSampleRate() method. But PythonPlugin inherits from GenericProcessor, which defines getSampleRate as:
float GenericProcessor::getSampleRate(int) const { return getDefaultSampleRate(); }
and getDefaultSampleRate as:
float GenericProcessor::getDefaultSampleRate() const { return 44100.0; }
... so pluginStartup always receives a sampling rate of 44100.0. Meanwhile, the ephys data actually gets sampled at 30 kHz (usually), and as far as I can tell the true sampling rate of the data that winds up the the buffer never gets over to the plugin.
I'll put together a pull request that addresses this shortly.
PythonPlugin passes the python pluginStartup function a value it pulls from its getSampleRate() method. But PythonPlugin inherits from GenericProcessor, which defines
getSampleRateas:and
getDefaultSampleRateas:... so pluginStartup always receives a sampling rate of 44100.0. Meanwhile, the ephys data actually gets sampled at 30 kHz (usually), and as far as I can tell the true sampling rate of the data that winds up the the buffer never gets over to the plugin.
I'll put together a pull request that addresses this shortly.