Way to detect when sound finished playing
Hi. I was wondering if there's any way to detect when the sound was finished playing to client.
Like if I use this in game console Code:
spk "misc/ut3/doublekill multikill megakill ultrakill monsterkill"So I wonder if there's a way to do it by AMXX. Maybe with CBase? |
Re: Way to detect when sound finished playing
Since you are using a client side command I would guess not because everything would only require handling client-side.
|
Re: Way to detect when sound finished playing
You can use a plugin to calculate the length of a wav sound then playing each sound without overlapping.
For the wav, what I'm using : Code:
|
Re: Way to detect when sound finished playing
Yeah, thanks. But I needed something to detect when the player is no longer hearing the sound, so I could start a new one (this doesn't include emit sound, just the sound to the client only).
|
Re: Way to detect when sound finished playing
you still can use arkshine's stock and make an set_task.
|
Re: Way to detect when sound finished playing
Quote:
I don't know when the sound starts in my case... |
Re: Way to detect when sound finished playing
Bump.
I now need some program or working code (arkshine's one returns 0.000000) to get the length of a wave sound. |
Re: Way to detect when sound finished playing
My code works fine.
Attach the wav which doesn't work. |
Re: Way to detect when sound finished playing
Looks like I forgot to add "sound/". ^^
|
| All times are GMT -4. The time now is 02:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.