AudioParameter type mismatch?

I instantiated an APVTS with an AudioParameterBool, but when I call apvts.getRawParameterValue() on that parameter, the return type is std::atomic<float>*.

Is there a reason it’s not std::atomic<bool>* ? Likewise for ints.

All audio parameters are represented as floats internally.

If you store a pointer to the AudioParameterBool, you can call get() on it to get the parameter value as a bool.

1 Like