Perl 6 - the future is here, just unevenly distributed

IRC log for #openframeworks, 2015-03-16

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:53 alski joined #openframeworks
02:23 jedahan joined #openframeworks
02:23 jedahan joined #openframeworks
02:57 ar_tama joined #openframeworks
03:00 ar_tama_ joined #openframeworks
03:02 ar_tama joined #openframeworks
03:05 ar_tama_ joined #openframeworks
03:07 ar_tama joined #openframeworks
03:09 ar_tama_ joined #openframeworks
03:10 MyMind joined #openframeworks
03:13 ar_tama joined #openframeworks
03:55 alski joined #openframeworks
07:49 julianadenauer joined #openframeworks
07:54 MyMind joined #openframeworks
08:07 MyMind joined #openframeworks
08:28 notjosh joined #openframeworks
08:38 i_n_g_o_ joined #openframeworks
10:07 mhashmi joined #openframeworks
11:18 Miles_ joined #openframeworks
11:48 sebllll_ joined #openframeworks
12:21 HarryHaaren joined #openframeworks
12:46 tgfrerer joined #openframeworks
13:16 reqshark joined #openframeworks
14:27 dantheman joined #openframeworks
14:47 admsyn joined #openframeworks
14:48 dantheman joined #openframeworks
14:59 Alex1982 joined #openframeworks
14:59 Alex1982 Hello! First time on IRC nice to meet you
14:59 FireArrow Welcome!
15:00 admsyn hi :)
15:00 Alex1982 greetings to all from rainy Nice, France
15:01 FireArrow How can we help you today?
15:02 Alex1982 well I've been trying for a while to get audiobus2 working with my audio apps.
15:02 Alex1982 I was going to give it another try before bugging you all here :)
15:02 admsyn oh right, so what's the issue you're running into?
15:03 Alex1982 so all was fine with AB1 but now audiobus2 needs access to the audiounit which isn't public
15:04 Alex1982 I need to get back into the project so I can be more helpful with my explaining
15:05 Alex1982 I'll get back to where I was last with the error in front of me, and report back
15:40 jedahan joined #openframeworks
15:40 jedahan joined #openframeworks
15:58 ar_tama joined #openframeworks
16:00 ar_tama joined #openframeworks
16:06 jedahan joined #openframeworks
16:09 dantheman joined #openframeworks
16:14 jedahan joined #openframeworks
16:23 Alex1982 hello again, so I'm back to where I was last time
16:23 Alex1982 trying to set up a "getter" for the audioUnit in IOSSoundStream
16:23 Alex1982 as per your conversation with CerupCat: https://github.com/openframewo​rks/openFrameworks/issues/2544
16:24 admsyn fwiw in said conversation I also say that's a bad idea
16:25 admsyn but maybe it's worth it to do that temporarily just to get everything else working I suppose
16:27 Alex1982 well Cerupcat sent me the code using a copy of soundStream
16:27 Alex1982 so I am able to initialise ABIOSSoundstream
16:28 admsyn cool
16:28 Alex1982 and trying to get audioUnit from there, only I can't find the getter
16:28 Alex1982 trying:   AudioUnit ofxiOSSoundStream::getOutputRemoteIO() {     return [(SoundOutputStream *)soundOutputStream audioUnit]; }
16:28 dantheman left #openframeworks
16:29 Alex1982 but not sure what to do in the .h to declare that
16:29 Alex1982 (sorry this is all very scary stuff for me)
16:29 admsyn np
16:29 admsyn in the ofxiOSSoundStream.h it'd be like AudioUnit getOutputRemoteIO();
16:30 admsyn and it needs to be in the bit under public: not private:
16:30 Alex1982 thanks. Compiler says unknown type name'AudioUnit'
16:31 admsyn that comes from audiotoolbox on iOS I think, so you need #import <AudioToolbox/AudioToolbox.h> at the top of the header
16:33 Alex1982 cool, that  fixed that error, just down to one:
16:34 Alex1982 when I call the audiobus initialization from ofApp.mm like this:   audiobus initWithApiKey:AUDIOBUS_KEY audioUnit:stream->audioUnit];
16:34 Alex1982 xcode says "no member named 'audioUnit' in ABIOSSoundSream
16:35 admsyn ok, is there an audio unit in ABIOSSoundStream?
16:36 admsyn if I had to guess, what you're looking for is probably a function like stream->getAudioUnit()
16:36 admsyn instead of stream->audioUnit
16:38 admsyn now, if I may
16:39 admsyn the problem you're going to run into once you get this is what I was talking about > a year ago on that issue
16:39 admsyn you need to have control over the RemoteIO itself, or things are going to explode once the SoundOutputStream starts doing things to it
16:40 admsyn I believe it actually creates a new one whenever the app sleeps, for instance, which'll explode everything
16:40 admsyn if audiobus assumes it still exists
16:40 jedahan joined #openframeworks
16:40 Alex1982 that sounds explosive
16:40 admsyn so, I'm happy to help you get this going, but if you're in a hurry to be done I think this might be a dead end :)
16:41 admsyn just cause I know you guys have been cracking at this for like a year or something :)
16:41 Alex1982 :)
16:42 Alex1982 not sure what to do
16:42 admsyn IMO, the route you want to go down is to forget all about OF's audio capabilities
16:42 admsyn go straight to audio bus, take their example
16:43 admsyn the tricky bit is just going to be making the raw audio unit callback integrate with ofxPD, which I think is your goal?
16:43 admsyn but that's just some weird syntax, it shouldn't be huge
16:43 Alex1982 well I'm doing all my audio in the callback that comes with AudioOutput example
16:43 Alex1982 but I know miles is using PD
16:44 admsyn yeah, so you don't really need audioOut specifically though
16:44 admsyn because that's actually just wrapping the raw audio unit callback itself
16:44 Alex1982 just the callback is all I need
16:44 admsyn yeah, right :)
16:45 admsyn AudioBus should have an example that gets you a callback
16:45 admsyn there example will set you up in just the right way for audio bus to work, OF doesn't have any knowledge of AudioBus
16:46 admsyn *their example
16:47 Alex1982 Cool I'll check that out, but would it be hard to bring that into my openframeworks project?
16:47 Alex1982 as in the draw() mousePressed(0 etc
16:47 admsyn not really no
16:47 admsyn you don't need to drag in their code wholesale necessarily
16:48 Alex1982 I'll try working in that new direction, thanks for the advice
16:48 admsyn np
16:48 admsyn btw this looks like all the info you need https://developer.audiob.us/​doc/_integration-_guide.html
16:49 jedahan joined #openframeworks
16:50 Alex1982 Great, thanks! Is their any document explaining how I might merge the AB sample into OF?
16:51 Alex1982 one step at a time, I'll go digging into the Audiobus samples first
16:52 admsyn not explicitly with OF
16:52 admsyn AudioBus will at some point give you an audio callback
16:52 admsyn it'll have different arguments than OF's audioOut but that's it
16:53 jedahan joined #openframeworks
16:53 jedahan joined #openframeworks
16:55 jedahan_ joined #openframeworks
16:55 Alex1982 Well thanks for your time, I'll get busy! Have a great week
16:55 admsyn no problem, good luck with the project
16:56 Alex1982 thanks!
16:58 jedahan joined #openframeworks
16:58 jedahan joined #openframeworks
17:16 mitch___ joined #openframeworks
17:27 notjosh joined #openframeworks
17:36 moebiussurfing joined #openframeworks
17:42 GuidovanPossum joined #openframeworks
17:44 dantheman joined #openframeworks
17:47 * jedahan wonders if using vertex shaders make sense for creating 'fireworks' or if I should just write something simple and 2d...
17:52 pizthewiz joined #openframeworks
18:09 pizthewiz joined #openframeworks
18:21 HarryHaaren joined #openframeworks
18:22 admsyn shader all the things
18:23 admsyn you could probably go wild w/ a geometry shader too if you need like a MILLION FIREWORKS
18:23 jedahan but can i learn2shader in just one week (tm)?
18:23 jedahan yeah like, that would be awesome
18:23 pizthewiz joined #openframeworks
18:23 jedahan like, make a couple of weird spheres, and only draw thier points, and have the radius explode?
18:23 admsyn tbh you could probably make it work fine on CPU assuming a single firework is 10,000 or so verts
18:23 admsyn if you need it done quick
18:25 admsyn I don't think you'd need a sphere, just create an epicenter with a ton of verts, then give them all a random 3d velocity
18:34 jedahan cool
18:34 jedahan yeah
18:34 jedahan i'll give that a shot. once I get gesture recognition working so i know when to throw the fireworks
18:35 jedahan heres to hoping ofxKinect can track 2 hands well
18:35 admsyn new or old kinect?
18:35 admsyn new one's pretty sweet fwiw
18:35 admsyn with regards to dealing with bad input
18:36 jedahan old
18:36 jedahan i was pushing for the new one
18:36 jedahan i even have one
18:36 jedahan and the client is refusing
18:36 jedahan -.-
18:36 jedahan he wants to use the old one for 'authenticity' instead of caring about how frustrating the experience will be
18:36 jedahan 'its authentic frustration'
18:37 admsyn authenticity wat
18:37 jedahan honestly out of the 5 interactives i'm doing, this one is the least interesting
18:37 admsyn here I am with my fake skeleton like a chump
18:37 admsyn but oh well, yeah the old kinect should probably be ok
18:37 jedahan basic on commodore 64, hypercard on mac plus, c on palm pilot, javascript on iPad 2, openFrameworks on kinect
18:38 admsyn ¯\_(ツ)_/¯
18:39 jedahan ya
18:39 jedahan bbl, lunchtime
18:40 dantheman joined #openframeworks
19:13 dantheman joined #openframeworks
19:41 dantheman joined #openframeworks
19:45 notjosh joined #openframeworks
19:46 admsyn joined #openframeworks
20:03 dantheman joined #openframeworks
20:14 jedahan joined #openframeworks
20:14 jedahan joined #openframeworks
20:56 jedahan woohoo, full autocompletion in vim. That with makefiles makes me feel as comfy as in xcode
20:56 admsyn sweet
20:57 admsyn joined #openframeworks
21:03 allartburns joined #openframeworks
21:15 pizthewiz joined #openframeworks
22:15 dantheman joined #openframeworks

| Channels | #openframeworks index | Today | | Search | Google Search | Plain-Text | summary