Thanks Steve.  I see how to play and pause.
How do I resume after a pause?  I tried pause and play  and resume but
these didn't work.
Also, when I am done with the sound, I think I would use 
SOAudioKit.Invalidate(MySoundID)
To get the sound file out of memory. Is this correct?
Thanks,
Jeff Weiss


-----Original Message-----
From: Stephen Clower [mailto:[email protected]] 
Sent: Friday, September 02, 2011 1:49 PM
To: [email protected]
Subject: Re: playing music with audioKit

Jeff,

Because this is a shared object, the only way to keep track of your own 
sounds is by a number which the Create and Load methods return. Change 
your snippet to the following, and it should work.

Dim mySoundID
mySoundID = SOAudioKit.Load("AudioKitTest.wav")
SOAudioKit.Play mySoundID

If you want to pause or stop the playback, call
SOAudioKit.Pause mySoundID
or
SOAudioKit.Stop mySoundID


Regards,
Steve




On 9/2/2011 2:39 PM, Jeff Weiss wrote:
> I see how to get the shared object and play a tone with the audioKit,
> but could we get a working example of how to play, pause, and stop a
> file from disk.
>
> Using SOAudioKit for my shared object, I tried:
>
>
>
> SOAudioKit.Load("AudioKitTest.wav")
>
> SOAudioKit.Play("AudioKitTest.wav")
>
>
>
> This did not work.
>
> I need more info about using the ID and I guess a long variable for
the
> ID-if this is necessary for playing a file.
>
> Thanks,
>
>
>
>
>
> Jeff Weiss, CVRT
>
> Rehabilitation Teacher
>
> Lions World Services for the Blind
>
> 2811 Fair Park Blvd.
>
> Little Rock, AR 72204
>
>
>
> http://www.lwsb.org
>
>
>
> The Mission of LWSB is to educate adults who are blind or visually
> impaired for careers and independent lives.
>
>
>
>

-- 
Stephen Clower
Product support specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com

Reply via email to