Skip to content

Commit

Permalink
ch
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvida89 committed Apr 24, 2019
1 parent 44ee0fe commit 00c5c55
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 31 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified src/.DS_Store
Binary file not shown.
Binary file modified src/ios/.DS_Store
Binary file not shown.
62 changes: 31 additions & 31 deletions src/ios/CDVEcho.mm
Original file line number Diff line number Diff line change
Expand Up @@ -55,40 +55,40 @@ All sound samples must be in same format (sample rate, sample depth, stereo/mono
//the following block executes sound_define calls once
static dispatch_once_t once_token;
dispatch_once (&once_token, ^{
NSURL* s = [[NSBundle mainBundle] URLForResource:@"MoreCowbell" withExtension:@"caf"];
sound_define(s, 'H', 1);
sound_define(s, 'L', 0.3);
sound_define(s, 'S', 0.1);
sound_define(s, 'N', 0);
sound_define(s, 'X', 0);
sound_define(s, 'M', 0.5);

// NSURL* s = [[NSBundle mainBundle] URLForResource:@"Cowbell" withExtension:@"caf"];
// sound_define(s, 'a', 1);
// sound_define(s, 'b', 0.5);
// sound_define(s, 'c', 0.3);
// sound_define(s, 'd', 0.1);

// NSURL* s = [[NSBundle mainBundle] URLForResource:@"MoreCowbell" withExtension:@"caf"];
// sound_define(s, 'H', 1);
// sound_define(s, 'L', 0.3);
// sound_define(s, 'S', 0.1);
// sound_define(s, 'N', 0);
// sound_define(s, 'X', 0);
// sound_define(s, 'M', 0.5);

NSURL* s = [[NSBundle mainBundle] URLForResource:@"MoreCowbell-low" withExtension:@"caf"];
sound_define(s, 'a', 1);
sound_define(s, 'b', 0.5);
sound_define(s, 'c', 0.3);
sound_define(s, 'd', 0.1);

sound_define(s, 'N', 0);
sound_define(s, 'X', 0);

// NSURL* s2 = [[NSBundle mainBundle] URLForResource:@"Woodblock-High" withExtension:@"caf"];
// sound_define(s2, 'e', 1);
// sound_define(s2, 'f', 0.5);
// sound_define(s2, 'g', 0.3);
// sound_define(s2, 'h', 0.1);

// NSURL* s3 = [[NSBundle mainBundle] URLForResource:@"Woodblock-Low" withExtension:@"caf"];
// sound_define(s3, 'i', 1);
// sound_define(s3, 'j', 0.5);
// sound_define(s3, 'k', 0.3);
// sound_define(s3, 'l', 0.1);

// NSURL* s4 = [[NSBundle mainBundle] URLForResource:@"Woodblock-Mid" withExtension:@"caf"];
// sound_define(s4, 'm', 1);
// sound_define(s4, 'n', 0.5);
// sound_define(s4, 'o', 0.3);
// sound_define(s4, 'p', 0.1);
NSURL* s2 = [[NSBundle mainBundle] URLForResource:@"MoreCowbell-mid" withExtension:@"caf"];
sound_define(s2, 'e', 1);
sound_define(s2, 'f', 0.5);
sound_define(s2, 'g', 0.3);
sound_define(s2, 'h', 0.1);

NSURL* s3 = [[NSBundle mainBundle] URLForResource:@"MoreCowbell-high" withExtension:@"caf"];
sound_define(s3, 'i', 1);
sound_define(s3, 'j', 0.5);
sound_define(s3, 'k', 0.3);
sound_define(s3, 'l', 0.1);

NSURL* s4 = [[NSBundle mainBundle] URLForResource:@"Woodblock-Mid" withExtension:@"caf"];
sound_define(s4, 'm', 1);
sound_define(s4, 'n', 0.5);
sound_define(s4, 'o', 0.3);
sound_define(s4, 'p', 0.1);

});

Expand Down
Binary file added src/ios/MoreCowbell-high.caf
Binary file not shown.
Binary file added src/ios/MoreCowbell-low.caf
Binary file not shown.
Binary file added src/ios/MoreCowbell-mid.caf
Binary file not shown.

0 comments on commit 00c5c55

Please sign in to comment.