Skip to content

Commit bf051cc

Browse files
committed
Portaudio correction
1 parent 2c51756 commit bf051cc

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

src/AudioConfig.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,3 @@
101101
#define SOFT_MUTE_VALUE LOW
102102
#endif
103103

104-
105-
/**
106-
* -------------------------------------------------------------------------
107-
* @brief typedefs for DefaultStream
108-
*
109-
*/
110-
#if defined(__linux__) || defined(_WIN32) || defined(__APPLE__)
111-
typedef PortAudioStream DefaultStream;
112-
#elif defined(ESP32) || defined(ESP8266) || defined(__SAMD21G18A__)
113-
typedef A2DPStream DefaultStream;
114-
#endif

src/AudioTools.h

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,19 @@
3131
#include "AudioHttp/AudioServer.h"
3232
#include "AudioHttp/URLStreamESP32.h"
3333
#endif
34+
35+
36+
/**
37+
* -------------------------------------------------------------------------
38+
* @brief typedefs for DefaultStream
39+
*
40+
*/
41+
namespace audio_tools {
42+
43+
#if defined(__linux__) || defined(_WIN32) || defined(__APPLE__)
44+
typedef PortAudioStream DefaultStream;
45+
#elif defined(ESP32) || defined(ESP8266) || defined(__SAMD21G18A__)
46+
typedef A2DPStream DefaultStream;
47+
#endif
48+
49+
}

0 commit comments

Comments
 (0)