Skip to content

Sample rate passed to plugin startup() is NOT the data sampling rate #10

Description

@beOn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions