File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
examples-desktop/generator Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 1
- # Desktop Implementation
1
+ # Playing Sound on your Desktop
2
2
3
3
We provide some generic output which will also work on Linux, Windows and OS/X
4
- The provided cmake is downloading all dependencies and builds an executable from the sketch
4
+ The cmake is downloading all dependencies and builds an executable from the sketch.
5
+
6
+ You just need to provide an Arduino Sketch as cpp file. In our example we use an example setup that can be compiled both in Arduin and with cmake:
7
+
8
+ - the sketch is provided as ino file
9
+ - the cpp file is including the Arduino.h and the ino file
5
10
6
11
To build the example execute
7
12
@@ -10,4 +15,5 @@ mkdir build
10
15
cd build
11
16
cmake ..
12
17
make
13
- ```
18
+ ```
19
+
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ void setup(void) {
15
15
AudioLogger::instance ().begin (Serial, AudioLogger::Info);
16
16
17
17
// open output
18
- PortAudioConfig config = out.defaultConfig ();
18
+ auto config = out.defaultConfig ();
19
19
config.sample_rate = sample_rate;
20
20
config.channels = channels;
21
21
config.bits_per_sample = sizeof (int16_t )*8 ;
You can’t perform that action at this time.
0 commit comments