Skip to content

Commit d87f1f1

Browse files
committed
rename classes with Print to Output
1 parent 3275547 commit d87f1f1

File tree

74 files changed

+220
-195
lines changed

Some content is hidden

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

74 files changed

+220
-195
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ As “Audio Sinks” we will have e.g:
3838

3939
- external DAC – [I2SStream](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_i2_s_stream.html)
4040
- Analog output e.g. to an Amplifier – [AnalogAudioStream](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_analog_audio_stream.html)
41-
- Output using PWM – [PWMAudioStream](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_p_w_m_audio_stream.html)
42-
- Output to SPDIF/TOSLINK - [SPDIFStream](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_s_p_d_i_f_stream.html)
41+
- Output using PWM – [PWMAudioOutput](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_p_w_m_audio_stream.html)
42+
- Output to SPDIF/TOSLINK - [SPDIFOutput](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_s_p_d_i_f_stream.html)
4343
- Bluetooth Speakers – [A2DPStream](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_a2_d_p_stream.html)
44-
- Serial to display the data as CSV – [CsvStream](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_csv_stream.html)
45-
- Serial to display the data as hex dump - [HexDumpStream](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_hex_dump_stream.html)
44+
- Serial to display the data as CSV – [CsvOutput](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_csv_stream.html)
45+
- Serial to display the data as hex dump - [HexDumpOutput](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_hex_dump_stream.html)
4646
- Encoding and Decoding of Audio [EncodedAudioStream](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_encoded_audio_stream.html)
4747
- Desktop Integration - [PortAudioStream](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_port_audio_stream.html)
4848
- ID3 Metadata for MP3 - [MetaDataID3](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_meta_data_i_d3.html)
@@ -51,7 +51,7 @@ As “Audio Sinks” we will have e.g:
5151
- VS1053 Codec Module - [VS1053Stream](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_v_s1053_stream.html)
5252
- Callback integration e.g. with ESP8266Audio [AudioOutputWithCallback](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_audio_output_with_callback.html)
5353
- Output using FIR, IRR Filters - [FilteredStream](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_filtered_stream.html)
54-
- Determine the Volume - [VolumePrint](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_volume_print.html)
54+
- Determine the Volume - [VolumeOutput](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_volume_print.html)
5555
- Split the Output to different Destinations - [MultiOutput](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_multi_output.html)
5656
- 3 Band Equilizer - [Equilizer3Bands](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_equilizer3_bands.html)
5757
- FFT - [AudioRealFFT](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_audio_real_f_f_t.html) and [AudioKissFFT](https://pschatzmann.github.io/arduino-audio-tools/classaudio__tools_1_1_audio_kiss_f_f_t.html)

cmake-tests/pitch-shift/pitch-shift/pitch-shift.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ uint16_t sample_rate=44100;
77
uint8_t channels = 1; // The stream will have 2 channels
88
SineWaveGenerator<int16_t> sineWave(32000); // subclass of SoundGenerator with max amplitude of 32000
99
GeneratedSoundStream<int16_t> sound(sineWave); // Stream generated from sine wave
10-
CsvStream<int16_t> out(Serial, 1);
10+
CsvOutput<int16_t> out(Serial, 1);
1111
//use one of VariableSpeedRingBufferSimple, VariableSpeedRingBuffer, VariableSpeedRingBuffer180
12-
PitchShiftStream<int16_t, VariableSpeedRingBuffer<int16_t>> pitchShift(out);
12+
PitchShiftOutput<int16_t, VariableSpeedRingBuffer<int16_t>> pitchShift(out);
1313
StreamCopy copier(pitchShift, sound); // copies sound to out
1414

1515
// Arduino Setup

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "AudioLibs/AudioKit.h"
1414

1515
AudioKitStream kit; // Access I2S as stream
16-
CsvStream<int16_t> csv(Serial,2);
16+
CsvOutput<int16_t> csv(Serial,2);
1717
MultiOutput out;
1818
StreamCopy copier(out, kit); // copy kit to kit
1919

examples/examples-audiokit/streams-audiokit-ram-ptichshift-audiokit/streams-audiokit-ram-ptichshift-audiokit.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ uint8_t channels = 1; // We use one channel only to simplify the processing
1919
MemoryManager memory(500); // Activate SPI RAM for objects > 500 bytes
2020
AudioKitStream kit;
2121
//use one of VariableSpeedRingBufferSimple, VariableSpeedRingBuffer, VariableSpeedRingBuffer180
22-
PitchShiftStream<int16_t, VariableSpeedRingBuffer<int16_t>> pitch_shift(kit);
22+
PitchShiftOutput<int16_t, VariableSpeedRingBuffer<int16_t>> pitch_shift(kit);
2323
DynamicMemoryStream recording(false); // Audio stored on heap, non repeating
2424
StreamCopy copier; // copies data
2525

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include "AudioLibs/AudioKit.h"
1313

1414
AudioKitStream kit; // Access I2S as stream
15-
CsvStream<int16_t> csvStream(Serial);
15+
CsvOutput<int16_t> csvStream(Serial);
1616
StreamCopy copier(csvStream, kit); // copy kit to csvStream
1717

1818
// Arduino Setup

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ uint8_t channels = 2; // The stream will ha
1313
SineFromTable<int16_t> sineWave(32000); // subclass of SoundGenerator with max amplitude of 32000
1414
GeneratedSoundStream<int16_t> sound(sineWave); // Stream generated from sine wave
1515
AudioKitStream out;
16-
//CsvStream<int16_t> out(Serial);
16+
//CsvOutput<int16_t> out(Serial);
1717
int sound_len=1024;
1818
StreamCopy copier(out, sound, sound_len); // copies sound into i2s
1919
int freq = 122;

examples/examples-basic-api/basic-a2dp-spdif/basic-a2dp-spdif.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @file basic-a2dp-audiospdif.ino
3-
* @brief A2DP Sink with output to SPDIFStream
3+
* @brief A2DP Sink with output to SPDIFOutput
44
*
55
* @author Phil Schatzmann
66
* @copyright GPLv3
@@ -11,7 +11,7 @@
1111
#include "AudioTools.h"
1212

1313
BluetoothA2DPSink a2dp_sink;
14-
SPDIFStream spdif;
14+
SPDIFOutput spdif;
1515

1616
// Write data to SPDIF in callback
1717
void read_data_stream(const uint8_t *data, uint32_t length) {

examples/examples-communication/rtsp/communication-audiokit-rtsp/communication-audiokit-rtsp.ino

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

1212
#include "AudioTools.h"
1313
#include "AudioLibs/AudioKit.h"
14-
#include "AudioLibs/RTSPStream.h"
14+
#include "AudioLibs/RTSPOutput.h"
1515
#include "AudioStreamer.h"
1616
#include "RTSPServer.h"
1717

examples/examples-communication/rtsp/communication-codec-rtsp/communication-codec-rtsp.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "AudioTools.h"
2-
#include "AudioLibs/RTSPStream.h"
2+
#include "AudioLibs/RTSPOutput.h"
33
#include "AudioCodecs/CodecG7xx.h"
44
#include "RTSPServer.h"
55

@@ -14,7 +14,7 @@ GeneratedSoundStream<int16_t> sound(sineWave); // Stream generated from sine wa
1414
// rtsp
1515
RTSPFormatG711 format;
1616
G711_ULAWEncoder encoder;
17-
RTSPStream rtsp_stream(format, encoder);
17+
RTSPOutput rtsp_stream(format, encoder);
1818
StreamCopy copier(rtsp_stream, sound); // rtsp to sine
1919
// Server
2020
RTSPServer rtsp(rtsp_stream.streamer(), port);

examples/examples-communication/rtsp/communication-generator-rtsp/communication-generator-rtsp.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
#include "AudioTools.h"
13-
#include "AudioLibs/RTSPStream.h"
13+
#include "AudioLibs/RTSPOutput.h"
1414
#include "AudioStreamer.h"
1515
#include "RTSPServer.h"
1616

0 commit comments

Comments
 (0)