Skip to content

Commit 9538017

Browse files
committed
IS_I2S_IMPLEMENTED and make SPDIFOutput optional
1 parent 284d525 commit 9538017

File tree

13 files changed

+25
-7
lines changed

13 files changed

+25
-7
lines changed

examples/examples-communication/a2dp/streams-a2dp-spdif/streams-a2dp-spdif.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* @copyright GPLv3
77
*/
88
#include "AudioTools.h"
9+
#include "AudioLibs/SPDIFOutput.h"
910
#include "BluetoothA2DPSink.h"
1011

1112
AudioInfo info(44100, 2, 16);

examples/examples-stream/streams-generator-spdif/streams-generator-spdif.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88

99
#include "AudioTools.h"
10-
10+
#include "AudioLibs/SPDIFOutput.h"
1111

1212
AudioInfo info(44100, 2, 16);
1313
SineWaveGenerator<int16_t> sineWave(32000); // subclass of SoundGenerator with max amplitude of 32000

src/AudioI2S/I2SESP32.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@
1010
#include "esp_system.h"
1111

1212
#ifndef I2S_MCLK_MULTIPLE_DEFAULT
13-
#define I2S_MCLK_MULTIPLE_DEFAULT ((i2s_mclk_multiple_t)0)
13+
# define I2S_MCLK_MULTIPLE_DEFAULT ((i2s_mclk_multiple_t)0)
1414
#endif
1515

16+
#define IS_I2S_IMPLEMENTED
17+
1618
namespace audio_tools {
1719

1820
/**

src/AudioI2S/I2SESP32V1.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#include "driver/i2s_tdm.h"
1212
#include "esp_system.h"
1313

14+
#define IS_I2S_IMPLEMENTED
15+
16+
1417
namespace audio_tools {
1518

1619
/**

src/AudioI2S/I2SESP8266.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
#include "AudioI2S/I2SConfig.h"
77
#include "AudioTools/AudioLogger.h"
88

9+
#define IS_I2S_IMPLEMENTED
10+
911
namespace audio_tools {
1012

1113
/**

src/AudioI2S/I2SNanoSenseBLE.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#include "AudioTools/AudioTypes.h"
1010
#include "AudioTools/Buffers.h"
1111

12+
#define IS_I2S_IMPLEMENTED
13+
1214
namespace audio_tools {
1315

1416
static int i2s_buffer_size = 0;

src/AudioI2S/I2SRP2040-MBED.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#if defined(RP2040_MBED)
55
#include "RP2040-I2S.h"
66

7+
#define IS_I2S_IMPLEMENTED
8+
79
namespace audio_tools {
810

911
#if !defined(ARDUINO_ARCH_MBED_RP2040)

src/AudioI2S/I2SRP2040.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#if defined(RP2040_HOWER)
55
#include <I2S.h>
66

7+
#define IS_I2S_IMPLEMENTED
8+
79
namespace audio_tools {
810

911
/**

src/AudioI2S/I2SSAMD.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
#if defined(ARDUINO_ARCH_SAMD)
44
#include <I2S.h>
5-
65
#include "AudioI2S/I2SConfig.h"
76

7+
#define IS_I2S_IMPLEMENTED
8+
89
namespace audio_tools {
910

1011
/**

src/AudioI2S/I2SSTM32.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#include "AudioI2S/I2SConfig.h"
55
#include "stm32-i2s.h"
66

7+
#ifdef STM_I2S_PINS
8+
#define IS_I2S_IMPLEMENTED
9+
710
namespace audio_tools {
811

912
/**
@@ -415,3 +418,4 @@ using I2SDriver = I2SDriverSTM32;
415418
} // namespace audio_tools
416419

417420
#endif
421+
#endif

0 commit comments

Comments
 (0)