- string type_str = _node->getStringValue("type");
- if (type_str == "flipflop") {
- _type = FGSound::FLIPFLOP;
- } else if (type_str== "inverted") {
- _type = FGSound::INVERTED;
- } else if (type_str == "raise") {
- _type = FGSound::RAISE;
- } else if (type_str == "fall") {
- _type = FGSound::FALL;
- } else {
- _type = FGSound::LEVEL;
- if (type_str != (string)"level")
- SG_LOG( SG_GENERAL, SG_INFO, "Unknown sound type, default to 'level'");
+ if ( strcmp(mode_str, "") )
+ SG_LOG(SG_GENERAL,SG_INFO, " Unknown sound mode, default to 'once'");