From 852bdec0c9ce22a58dc28ed4a5dfd76adb3850b1 Mon Sep 17 00:00:00 2001 From: Ariel Elkin Date: Sun, 13 Dec 2015 16:55:45 +0100 Subject: [PATCH] set raw wave path for demo project --- iOS/demo/iOS Demo/ViewController.mm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/iOS/demo/iOS Demo/ViewController.mm b/iOS/demo/iOS Demo/ViewController.mm index 31d3b09..6850544 100644 --- a/iOS/demo/iOS Demo/ViewController.mm +++ b/iOS/demo/iOS Demo/ViewController.mm @@ -44,7 +44,13 @@ float sample = brass->tick(); NSLog(@"Brass sample: %f", sample); } - + + //We're going to be making use of a class that needs + //raw wave files, we need to tell the STK where + //the files are: + stk::Stk::setRawwavePath([[[NSBundle mainBundle] pathForResource:@"rawwaves" ofType:@"bundle"] UTF8String]); + + //Test Mandolin: stk::Mandolin *mandolin = new stk::Mandolin(400);