Raised This Month: $ Target: $400
 0% 

How to get sound duration


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SpaceRip
Junior Member
Join Date: Aug 2012
Old 08-17-2012 , 02:41   How to get sound duration
Reply With Quote #1

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!
SpaceRip is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-17-2012 , 03:07   Re: How to get sound duration
Reply With Quote #2

http://forums.alliedmods.net/showthread.php?t=176259
__________________
Arkshine is offline
SpaceRip
Junior Member
Join Date: Aug 2012
Old 08-17-2012 , 03:20   Re: How to get sound duration
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
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!
SpaceRip is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-17-2012 , 03:38   Re: How to get sound duration
Reply With Quote #4

If you wanted to know more about the wav format, you could try to search... https://ccrma.stanford.edu/courses/4...ts/WaveFormat/
__________________
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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