1
0
mirror of https://github.com/RPCS3/soundtouch.git synced 2024-11-08 20:12:27 +01:00

Added soundtouch_getVersionString2()

This commit is contained in:
oparviai 2010-12-12 18:28:49 +00:00
parent 0ec963fddf
commit ff455bb5a6
2 changed files with 13 additions and 0 deletions

View File

@ -107,6 +107,15 @@ SOUNDTOUCHDLL_API const char *__stdcall soundtouch_getVersionString()
return SoundTouch::getVersionString();
}
/// Get SoundTouch library version string - alternative function for
/// environments that can't properly handle character string as return value
SOUNDTOUCHDLL_API void __stdcall soundtouch_getVersionString2(char* versionString, int bufferSize)
{
strcpy_s(versionString, bufferSize, SoundTouch::getVersionString());
}
/// Get SoundTouch library version Id
SOUNDTOUCHDLL_API uint __stdcall soundtouch_getVersionId()
{

View File

@ -58,6 +58,10 @@ SOUNDTOUCHDLL_API void __stdcall soundtouch_destroyInstance(HANDLE h);
/// Get SoundTouch library version string
SOUNDTOUCHDLL_API const char *__stdcall soundtouch_getVersionString();
/// Get SoundTouch library version string - alternative function for
/// environments that can't properly handle character string as return value
SOUNDTOUCHDLL_API void __stdcall soundtouch_getVersionString2(char* versionString, int bufferSize);
/// Get SoundTouch library version Id
SOUNDTOUCHDLL_API unsigned int __stdcall soundtouch_getVersionId();