You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to use the the A2DPSource as a destination for a stream copy using the utility from arduino-audio-tools. Maybe I'm misunderstanding since it's been a long time since I've worked with C++, but StreamCopy should accept anything that derives from arduino::Print as a target. A2DPSource does appear to extend that interface, but when I try to use it, I get a compiler error that there is an ambiguous base:
error: 'arduino::Print' is an ambiguous base of 'A2DPSource'
I have added arduino-audio-tools v1.0.1 as a zip library in the Arduino IDE along with adding arduino-pico using the board manager.
Here is a simple sketch that reproduces the error:
Is there something I'm missing, or need to explicitly cast? I have tried to do so, but arduino::Print and arduino::Stream are both abstract classes and I'm not sure what concrete class I would need to cast to in order for this to work.
The text was updated successfully, but these errors were encountered:
Sorry, but I really don't know anything about that library. You may want to ping the author there and see what his suggestion is.
It's possible there's some weird C++ multiple inheritance issue here, but none of the examples in this repo are throwing errors and this is the first report like this.
I'm attempting to use the the A2DPSource as a destination for a stream copy using the utility from arduino-audio-tools. Maybe I'm misunderstanding since it's been a long time since I've worked with C++, but
StreamCopy
should accept anything that derives fromarduino::Print
as a target.A2DPSource
does appear to extend that interface, but when I try to use it, I get a compiler error that there is an ambiguous base:I have added
arduino-audio-tools
v1.0.1 as a zip library in the Arduino IDE along with addingarduino-pico
using the board manager.Here is a simple sketch that reproduces the error:
Is there something I'm missing, or need to explicitly cast? I have tried to do so, but
arduino::Print
andarduino::Stream
are both abstract classes and I'm not sure what concrete class I would need to cast to in order for this to work.The text was updated successfully, but these errors were encountered: