AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Get .wav file duration plugin (https://forums.alliedmods.net/showthread.php?t=342370)

Hakim Azizov 04-05-2023 14:34

Get .wav file duration plugin
 
Hello all. I want a plugin which it shows the duration of the .wav file. Anyone can help me? (Thanks for helping)

kadet.89 04-05-2023 17:32

Re: Get .wav file duration plugin
 
IEngineSound has GetSoundDuration method:
https://github.com/ValveSoftware/sou...IEngineSound.h
But it can only be exposed to SourcePawn via a c++ extension

Franc1sco 04-05-2023 19:55

Re: Get .wav file duration plugin
 
Quote:

Originally Posted by kadet.89 (Post 2802234)
IEngineSound has GetSoundDuration method:
https://github.com/ValveSoftware/sou...IEngineSound.h
But it can only be exposed to SourcePawn via a c++ extension

Like this https://forums.alliedmods.net/showthread.php?t=105816

or this native https://sm.alliedmods.net/new-api/sd...tSoundDuration

Hakim Azizov 04-06-2023 13:59

Re: Get .wav file duration plugin
 
Quote:

Originally Posted by Franc1sco (Post 2802247)
Thanks a lot, bro)



All times are GMT -4. The time now is 09:46.

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