_playing(false),
_changed(true),
_static_changed(true),
+ _out_of_range(false),
_is_file(false)
{
}
// constructor
-SGSoundSample::SGSoundSample( const char *path, const char *file ) :
+SGSoundSample::SGSoundSample(const char *file, const SGPath& currentDir) :
_absolute_pos(SGVec3d::zeros()),
_relative_pos(SGVec3d::zeros()),
_direction(SGVec3d::zeros()),
_playing(false),
_changed(true),
_static_changed(true),
+ _out_of_range(false),
_is_file(true)
{
- SGPath p = simgear::ResourceManager::instance()->findPath(file);
+ SGPath p = simgear::ResourceManager::instance()->findPath(file, currentDir);
_refname = p.str();
}
_playing(false),
_changed(true),
_static_changed(true),
+ _out_of_range(false),
_is_file(false)
{
- SG_LOG( SG_GENERAL, SG_DEBUG, "In memory sounds sample" );
+ SG_LOG( SG_SOUND, SG_DEBUG, "In memory sounds sample" );
_data = (unsigned char*)*data; *data = NULL;
}
_playing(false),
_changed(true),
_static_changed(true),
+ _out_of_range(false),
_is_file(false)
{
- SG_LOG( SG_GENERAL, SG_DEBUG, "In memory sounds sample" );
+ SG_LOG( SG_SOUND, SG_DEBUG, "In memory sounds sample" );
_data = (unsigned char*)*data; *data = NULL;
}