Forum Rule: Always post complete source code & details to reproduce any issue!
-
PT8211 Oversampling deprecated? :s
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
-
Senior Member
Oversampling is enabled by default in output_pt8211_2.h:

By the way: it's 4x oversampling, see here.
Paul
Last edited by PaulS; 03-20-2023 at 09:18 PM.
-
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules