[EXTENSION] Sound Info Library v1.0.1
1 Attachment(s)
https://www.bcserv.eu/images/sourcemod/soundinfolib.png
Download: https://github.com/downloads/bcserv/...lib_v1.0.1.zip Sourcecode on Github: https://github.com/bcserv/soundlib - Forks & Pull requests are welcome Licenses: GPL, LGPL, MPL Because the source engines internal functionality to calculate the length of a sound file fails, I decided to write my own extension, that handles the calculation. I've spent allot of time into this. I came out with an extension which is able to read various kind of information out of mp3 files or files in general that have the id3 tag besides of the sound length. Note: it probably can't read VBR encoded mp3's accurate in some cases. If the library doesn't load on Windows install this: Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) Microsoft Visual C++ 2010 SP1 Redistributable Package (x64) If it says "libz.so.1: cannot open shared object file: No such file or directory" read this post: https://forums.alliedmods.net/showpo...3&postcount=52 Here is a list of things it can read:
Example code PHP Code:
PHP Code:
This extension makes use of the Taglib library, I compiled static libraries for windows & linux. The Taglib is under the GNU Lesser General Public License (LGPL) and the Mozilla Public License (MPL). |
Re: [EXTENSION] Sound Info Library 0.9 beta
very nice work.
I can't wait for a sound plugin that uses this, since its annoying to write into a config file how long every sound is. ;) Hey and how about a mp3-server-based-player? something like radio on demand. :) |
Re: [EXTENSION] Sound Info Library 0.9 beta
Quote:
by the include file some natives misses buffers |
Re: [EXTENSION] Sound Info Library 1.0
Sound Info Library v1 released !
Date: 07.02.2012 Changelog:
|
Re: [EXTENSION] Sound Info Library 1.0
PHP Code:
|
Re: [EXTENSION] Sound Info Library 1.0
Ah that's a mistake in the documentation, the values are returned as integer, there are no string buffers.
|
Re: [EXTENSION] Sound Info Library v1.0.1
Sound Info Library v1.0.1 released !
Date: 07.02.2012 Changelog:
|
Re: [EXTENSION] Sound Info Library v1.0.1
The .inc file should *really* have double inclusion protection.
Something like this: Code:
#if defined _soundlib_included |
Re: [EXTENSION] Sound Info Library v1.0.1
Quote:
|
Re: [EXTENSION] Sound Info Library v1.0.1
Quote:
|
All times are GMT -4. The time now is 07:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.