playMaker

Author Topic: playMaker and AudioToolkit  (Read 2323 times)

TomEllard

  • Playmaker Newbie
  • *
  • Posts: 9
playMaker and AudioToolkit
« on: September 03, 2012, 08:05:43 AM »
I'm trying to get pM to talk to Clockstone's Audio Toolkit, and not really sure how to get them working together.

Once AudioToolkit is set up, a sound is triggered like this:

Quote
To play an audio item call the static function
Code: [Select]
AudioController.Play( "records" )

where AudioController is a game object and 'records' is the unique audio item is specified in it.

In playMaker I'm trying Invoke Method to AudioController, setting the Method Name to
Code: [Select]
Play( "records" ) which doesn't work - in fact when I browse the available methods I don't get that option. So I think I am not understanding the idea of a 'static function' as opposed to 'methods'.

In a nutshell all I want to do is run a single line of script, and not sure how it's done.

Much obliged for any ideas.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: playMaker and AudioToolkit
« Reply #1 on: September 03, 2012, 10:35:37 AM »
Hi,

Yes, you'll need a custom action for this.

Here we go: http://hutonggames.com/playmakerforum/index.php?board=19.0
 
If you need to cover the whole api, pm me so we can arrange something.

Bye,

 Jean

TomEllard

  • Playmaker Newbie
  • *
  • Posts: 9
Re: playMaker and AudioToolkit
« Reply #2 on: September 04, 2012, 07:43:46 AM »
You're very clever.

I will try this out and report back (delays will be just me fumbling around).