Skip to content

Commit 73480fe

Browse files
committed
Remove namespace from ino examples
1 parent d1c71b7 commit 73480fe

File tree

80 files changed

+82
-88
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+82
-88
lines changed

examples/examples-audiokit/player-sd-audiokit/player-sd-audiokit.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
#include "AudioTools.h"
1313
#include "AudioLibs/AudioKit.h"
1414

15-
using namespace audio_tools;
16-
1715
const char *startFilePath="/";
1816
const char* ext="mp3";
1917
int speedMz = 10;

examples/examples-audiokit/player-url_icy-audiokit/player-url_icy-audiokit.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
#include "AudioCodecs/CodecMP3Helix.h"
1414
#include "AudioLibs/AudioKit.h"
1515

16-
using namespace audio_tools;
17-
1816
const char *urls[] = {
1917
"http://centralcharts.ice.infomaniak.ch/",
2018
"http://centraljazz.ice.infomaniak.ch/",

examples/examples-audiokit/streams-audiokit-audiokit/streams-audiokit-audiokit.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#include "AudioTools.h"
1212
#include "AudioLibs/AudioKit.h"
1313

14-
using namespace audio_tools;
15-
1614
AudioKitStream kit; // Access I2S as stream
1715
StreamCopy copier(kit, kit); // copy kit to kit
1816

examples/examples-audiokit/streams-audiokit-csv/streams-audiokit-csv.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
#include "AudioTools.h"
1212
#include "AudioLibs/AudioKit.h"
1313

14-
using namespace audio_tools;
15-
1614
AudioKitStream kit; // Access I2S as stream
1715
CsvStream<int16_t> csvStream(Serial);
1816
StreamCopy copier(csvStream, kit); // copy kit to csvStream

examples/examples-basic-api/base-adc-a2dp/base-adc-a2dp.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include "BluetoothA2DPSource.h"
1515
#include "AudioTools.h"
1616

17-
using namespace audio_tools;
18-
1917
/**
2018
* @brief We use a mcp6022 analog microphone as input and send the data to A2DP
2119
*/

examples/examples-basic-api/base-adc-serial/base-adc-serial.ino

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
#include "BluetoothA2DPSource.h"
1515
#include "AudioTools.h"
1616

17-
using namespace audio_tools;
18-
1917
/**
2018
* @brief We use a mcp6022 analog microphone on GPIO34 and write it to Serial
2119
*/

examples/examples-basic-api/base-file_mp3-a2dp/base-file_mp3-a2dp.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "BluetoothA2DPSource.h"
1919
#include "AudioTools.h"
2020

21-
using namespace audio_tools;
21+
2222

2323
const int sd_ss_pin = 5;
2424
const char* fileName = "/audio.mp3";

examples/examples-basic-api/base-i2s-a2dp/base-i2s-a2dp.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
#include "AudioTools.h"
1414

15-
using namespace audio_tools;
15+
1616

1717
/**
1818
* @brief We use a ADS1015 I2S microphone as input and send the data to A2DP

examples/examples-basic-api/base-i2s-serial/base-i2s-serial.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#include "Arduino.h"
1111
#include "AudioTools.h"
1212

13-
using namespace audio_tools;
13+
1414

1515
/**
1616
* @brief We use I2S as input

examples/examples-desktop/generator/generator.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "AudioTools.h"
22

3-
using namespace audio_tools;
3+
44

55
uint16_t sample_rate=44100;
66
uint8_t channels = 1; // The stream will have 2 channels

0 commit comments

Comments
 (0)