Skip to content

Commit

Permalink
AudioServer cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
pschatzmann committed Aug 4, 2024
1 parent 5c9e54c commit f707712
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/AudioHttp/AudioServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
# include <WiFi.h>
# endif
#endif

#ifdef USE_ETHERNET
#include <Ethernet.h>
# include <Ethernet.h>
#endif

#include "AudioCodecs/CodecWAV.h"
Expand Down Expand Up @@ -279,13 +280,13 @@ class AudioServerT {
#ifdef USE_WIFI
using AudioServer = AudioServerT<WiFiClient, WiFiServer>;
using AudioServerWiFi = AudioServerT<WiFiClient, WiFiServer>;
#else
using AudioServer = AudioServerT<EthernetClient, EthernetServer>;
#endif

#ifdef USE_ETHERNET
using AudioServer = AudioServerT<EthernetClient, EthernetServer>;
using AudioServerEthernet = AudioServerT<EthernetClient, EthernetServer>;
#endif

/**
* @brief A simple Arduino Webserver which streams the audio using the indicated
* encoder.. This class is based on the WiFiServer class. All you need to do is
Expand Down

0 comments on commit f707712

Please sign in to comment.