PT8211 Oversampling deprecated? :s

domingo

Well-known member
When I activate Oversampling on output_pt8211_2.h and compile I get the following error:

'define' does not name a type define AUDIO_PT8211_OVERSAMPLING


All I did was uncommenting the lines:

define AUDIO_PT8211_OVERSAMPLING
&
define AUDIO_PT8211_INTERPOLATION_LINEAR

Any idea what might be happening? I'm on Teensy 4.0.
 
Preprocessor definitions require "#" character

It looks like a "#" character is missing.

The way to enable these things is with a preprocessor macro, so use "#define" preprocessor operator.

Code:
#define AUDIO_PT8211_OVERSAMPLING

#define AUDIO_PT8211_INTERPOLATION_LINEAR
 
Oversampling is enabled by default in output_pt8211_2.h:

Capture.PNG

By the way: it's 4x oversampling, see here.

Paul
 
Last edited:
Thanks a lot, a lapsus made me think uncommenting also meant deleting the # symbol :s

It works fine, using it with a TDA1387 after changing the corresponding line on the .cpp file.
 
Back
Top