Skip to content

Commit 16a65c7

Browse files
committed
Swap out mp3 samples for wav samples in chapter 20
The sound library currently crashes when attempting to play back certain mp3 files, see issue #11: processing/processing-sound#11 We circumvent this by using WAV instead of MP3.
1 parent 4c5a1ba commit 16a65c7

21 files changed

Lines changed: 7 additions & 7 deletions

File tree

-248 KB
Binary file not shown.
684 KB
Binary file not shown.

chp20_sound/example_20_01_playback/example_20_01_playback.pde

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

1212
void setup() {
1313
size(480, 270);
14-
song = new SoundFile(this, "beat.mp3");
14+
song = new SoundFile(this, "beat.wav");
1515
song.play();
1616
}
1717

-248 KB
Binary file not shown.
684 KB
Binary file not shown.

chp20_sound/example_20_03_manipulate_sound/example_20_03_manipulate_sound.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ void setup() {
1313
size(200, 200);
1414

1515
// Load a sound file
16-
song = new SoundFile(this, "beat.mp3");
16+
song = new SoundFile(this, "beat.wav");
1717

1818
// Loop the sound forever
1919
// (well, at least until stop() is called)
-248 KB
Binary file not shown.
684 KB
Binary file not shown.

chp20_sound/example_20_04_pan/example_20_04_pan.pde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SoundFile soundFile;
44

55
void setup() {
66
size(200, 200);
7-
soundFile = new SoundFile(this, "beat.mp3");
7+
soundFile = new SoundFile(this, "beat.wav");
88
soundFile.loop();
99
}
1010

-248 KB
Binary file not shown.

0 commit comments

Comments
 (0)