J :
* Add a method to abstract the file size.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user