Compiling bt_music_receiver_audiokit example has #include "AudioBoard.h" error #544
-
Compiling bt_music_receiver_audiokit example has #include "AudioBoard.h" error.
I have installed ESP32 V3.0rc with the arduino_audio_tools and arduino_audio_driver libraries in Arduino IDE v2.3.2 on Fedora 39 The old audio tools used to work but new computer and installs and now it doesn't.. |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 13 replies
-
Double check your installation: AudioBoard.h is in the src directory of arduino_audio_driver library! |
Beta Was this translation helpful? Give feedback.
-
Just did a new install of Arduino 2.3.2, esp32 v3rc, git cloned the
libraries into ~/Arduino/libraries and got the "Audiotools.h" not found. So
I copied the libraries over to ~/Documents/Arduino/libraries and it got
past that error. Is it a hardcoded path in the lib?
It now comes up with
In file included from
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/AudioHttp.h:8,
from
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioTools.h:94,
from
/home/bruce/.var/app/cc.arduino.IDE2/cache/.arduinoIDE-unsaved2024316-59-111tec8.drxp/bt_music_receiver_audiokit/bt_music_receiver_audiokit.ino:19:
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:272:3:
error: 'WiFiClient' does not name a type
272 | WiFiClient* clientInsecure = nullptr; // wifi client for http
| ^~~~~~~~~~
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:272:3:
note: the macro 'WiFiClient' had not yet been defined
In file included from
/home/bruce/.arduino15/packages/esp32/hardware/esp32/3.0.0-rc1/libraries/WiFi/src/WiFi.h:38,
from
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/AudioServer.h:10,
from
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/AudioHttp.h:10:
/home/bruce/.arduino15/packages/esp32/hardware/esp32/3.0.0-rc1/libraries/WiFi/src/WiFiClient.h:3:
note: it was later defined here
3 | #define WiFiClient NetworkClient
|
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:
In destructor 'virtual audio_tools::URLStream::~URLStream()':
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:57:9:
error: 'clientInsecure' was not declared in this scope; did you mean
'clientSecure'?
57 | if (clientInsecure != nullptr) {
| ^~~~~~~~~~~~~~
| clientSecure
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:58:14:
error: type '<type error>' argument given to 'delete', expected pointer
58 | delete clientInsecure;
| ^~~~~~~~~~~~~~
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:
In member function 'Client& audio_tools::URLStream::getClient(bool)':
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:371:9:
error: 'clientInsecure' was not declared in this scope; did you mean
'clientSecure'?
371 | if (clientInsecure == nullptr) {
| ^~~~~~~~~~~~~~
| clientSecure
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:372:28:
error: expected type-specifier before 'WiFiClient'
372 | clientInsecure = new WiFiClient();
| ^~~~~~~~~~
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:375:13:
error: 'clientInsecure' was not declared in this scope; did you mean
'clientSecure'?
375 | return *clientInsecure;
| ^~~~~~~~~~~~~~
| clientSecure
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:
In member function 'bool audio_tools::URLStream::login()':
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:398:9:
error: 'WiFi' was not declared in this scope
398 | WiFi.status() != WL_CONNECTED) {
| ^~~~
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:398:26:
error: 'WL_CONNECTED' was not declared in this scope
398 | WiFi.status() != WL_CONNECTED) {
| ^~~~~~~~~~~~
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:409:12:
error: 'WiFi' was not declared in this scope
409 | return WiFi.status() == WL_CONNECTED;
| ^~~~
/home/bruce/Arduino/libraries/arduino-audio-tools/src/AudioHttp/URLStream.h:409:29:
error: 'WL_CONNECTED' was not declared in this scope
409 | return WiFi.status() == WL_CONNECTED;
| ^~~~~~~~~~~~
exit status 1
Compilation error: exit status 1
…On Tue, 16 Apr 2024 at 01:03, Phil Schatzmann ***@***.***> wrote:
For the git issues: this might help
<https://stackoverflow.com/questions/66366582/github-unexpected-disconnect-while-reading-sideband-packet>
—
Reply to this email directly, view it on GitHub
<#544 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAF56IU3HD2OOD56JOYQDCTY5PT4JAVCNFSM6AAAAABGHJTCBSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TCMJZGY3DE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Got it to list in the BT devices and connected.
Playing video does not get sound through headphones on audiokit so am now
checking the API to set the headphone output.
The A2DP sink is selected in the Sound settings.
…On Tue, 16 Apr 2024 at 20:35, Phil Schatzmann ***@***.***> wrote:
It is still strange that esp32 v3rc does not work for you!
—
Reply to this email directly, view it on GitHub
<#544 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAF56IVLHMYN6MZMVGNUF3LY5T5IZAVCNFSM6AAAAABGHJTCBSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TCMRYGYYTS>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
The earphones should work automatically: the default setting is using output_device = DAC_OUTPUT_ALL. |
Beta Was this translation helpful? Give feedback.
-
Just went through the API and found output_device = DAC_OUTPUT_ALL.
All volumes are up and sound test from Gnome settings does not produce any
sound.
Will keep trying.
I have had sound out of the board before, working on some FIR's and
Hilberts for an SDR but will try another board in case my inexperience did
something.
…On Tue, 16 Apr 2024 at 21:09, Phil Schatzmann ***@***.***> wrote:
The headphones should work automatically: the default setting is using
output_device = DAC_OUTPUT_ALL.
Maybe it is a question of the volume ?
—
Reply to this email directly, view it on GitHub
<#544 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAF56ITT6BUTV6XBJFI2K43Y5UBE3AVCNFSM6AAAAABGHJTCBSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TCMRYHEYDA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Yay got BT sound through the Audiokit. Had to change the Configuration in
Sound Settings to (A2DP Sink, Codec SBC) from (A2DP Sink, Codec SBC-XQ)
which was selected automatically.
Not HiFi sound though, lacks the "fullness" of the Sennheiser headphones
plugged directly into the tablet but clear and not noisy or distorted.
Will try compiling with the V3rc tomorrow, after the frustration levels
subside.
…On Tue, 16 Apr 2024 at 21:20, Bruce Kerr ***@***.***> wrote:
Just went through the API and found output_device = DAC_OUTPUT_ALL.
All volumes are up and sound test from Gnome settings does not produce any
sound.
Will keep trying.
I have had sound out of the board before, working on some FIR's and
Hilberts for an SDR but will try another board in case my inexperience did
something.
On Tue, 16 Apr 2024 at 21:09, Phil Schatzmann ***@***.***>
wrote:
> The headphones should work automatically: the default setting is using
> output_device = DAC_OUTPUT_ALL.
> Maybe it is a question of the volume ?
>
> —
> Reply to this email directly, view it on GitHub
> <#544 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAF56ITT6BUTV6XBJFI2K43Y5UBE3AVCNFSM6AAAAABGHJTCBSVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TCMRYHEYDA>
> .
> You are receiving this because you authored the thread.Message ID:
> ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
Double check your installation: AudioBoard.h is in the src directory of arduino_audio_driver library!
I guess you forgot to install the arduino_audio_driver library or something went wrong...