Browse Source

remove redundant reference to audio_dls_file

David Rose 19 years ago
parent
commit
5f516b9d32
1 changed files with 2 additions and 7 deletions
  1. 2 7
      panda/src/audiotraits/milesAudioManager.cxx

+ 2 - 7
panda/src/audiotraits/milesAudioManager.cxx

@@ -109,13 +109,8 @@ MilesAudioManager() {
           if (dls == NULL) {
             audio_error("  Unable to open DLS. " << AIL_last_error());
           } else {
-            string dls_file = Filename(audio_dls_file).to_os_specific();
-            if (dls_file.empty()) {
-              get_gm_file_path(dls_file);
-              // we need more dbg info in logs, so bumping the msgs from 'debug' status to 'info' status
-              audio_info("  using default dls_file: "<< dls_file );
-            }
-            
+            string dls_file;
+            get_gm_file_path(dls_file);
             audio_debug("  dls_file=\""<<dls_file<<"\"");
             // note: if AIL_DLS_load_file is not done, midi fails to play on some machines.
             nassertv(_dls_field == NULL);