* Add a method to abstract the file size.
This commit is contained in:
jean.chalard
2010-02-02 09:11:44 +00:00
parent 02e3932017
commit 4f0a264146
3 changed files with 14 additions and 0 deletions

View File

@@ -58,6 +58,14 @@ JSample::~JSample()
#endif
}
unsigned long JSample::fileSize()
{
#ifdef WITH_FMOD
return FSOUND_Sample_GetLength(mSample);
#else
return 0;
#endif
}
//////////////////////////////////////////////////////////////////////////
JSoundSystem* JSoundSystem::mInstance = NULL;