AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to get sound duration (https://forums.alliedmods.net/showthread.php?t=193161)

SpaceRip 08-17-2012 02:41

How to get sound duration
 
I remember i saw one day module who have native for this but now i search all pages in module coding forum and i did not find anything ( mayby it was for css )
i search also all default inc what come with amxmodx install, also nohting.

Strange, so it means that i need to create a module? ( that will be bad, it is hard for me to compile code for linux )
Or it can do also in pawn somehow, reading file (hex i think)
( Will do wav hex file research later, mayby there are ohter way )

Please help me, need to know how i get sound duration.
Thanks!

Arkshine 08-17-2012 03:07

Re: How to get sound duration
 
http://forums.alliedmods.net/showthread.php?t=176259

SpaceRip 08-17-2012 03:20

Re: How to get sound duration
 
Quote:

Originally Posted by Arkshine (Post 1773717)

I found spot where duration is in wav (  dataµų" ) last 2 hex are duration.
So i was on my way to create hex encoder code put god you save me.
Thank you!

Arkshine 08-17-2012 03:38

Re: How to get sound duration
 
If you wanted to know more about the wav format, you could try to search... https://ccrma.stanford.edu/courses/4...ts/WaveFormat/


All times are GMT -4. The time now is 05:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.