Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers AppGameKit Corner / How to check if sound is still playing?

Author
Message
SounDesign
4
Years of Service
User Offline
Joined: 25th Dec 2014
Location:
Posted: 29th Jun 2015 12:25
Hi!

I can't find anything to help.

Need to determine if a sound is still playing, or not.

Tried messing with GetSoundInstancePlaying, but there is no example so I can't see how it should be used?

cheers
BatVink
Moderator
16
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 29th Jun 2015 13:41
Off the top of my head, you could run a quick test, that would show you how it works. My guess is that you get a 1 until it ends, then it returns 0....



Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
SounDesign
4
Years of Service
User Offline
Joined: 25th Dec 2014
Location:
Posted: 29th Jun 2015 15:28
thanks Oh Vink of the Bat (DO you come from Arkham??)

I'll try that and let you know...if I get it working I'll see how to add it back to the manual as an example...

Cheers for now
BatVink
Moderator
16
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 29th Jun 2015 15:58
Quote: "DO you come from Arkham??"




Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
SounDesign
4
Years of Service
User Offline
Joined: 25th Dec 2014
Location:
Posted: 29th Jun 2015 20:26
Geeez. GOt it, magic.

Just got to translate that into my code and I'll be A fer awayyyyyyyy.

S'pose you don't know how to record the output audio? I see the question has been asked and answered - not yet? But is it do-able somehow?

Basically I have a kind of fancy drum box, and I think I know how to 'record' the sequence of steps to recreate the 'mix' BUT, it'd be really cool to be able to output to .wav or something..

cheers for now
SounDesign
4
Years of Service
User Offline
Joined: 25th Dec 2014
Location:
Posted: 29th Jun 2015 21:51
Awesome, nearly there, used your code - that worked in itself, then 'cross fertilised with an extract from mine, got that working.

Now for the implementation into the main code, which works, the test code works so just a careful 'injection' and should be all but done - bar the spit and polish!!!!

Thanks again and cheers for now
BatVink
Moderator
16
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 30th Jun 2015 00:14
I don't know if it is possible to record the output, sorry.

Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Scraggle
Moderator
16
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 8th Jul 2015 00:24
It's been a long time since I watched an episode of BatFink!
Who would build a bomb shelter out of plutonium though, I mean really?
The rest of the show is, of course, entirely plausible but plutonium?

AGK V2 user - Tier 1 (mostly)

Login to post a reply

Server time is: 2019-07-20 14:25:04
Your offset time is: 2019-07-20 14:25:04