private void closeSndFile(sound_file_format input, Stream musicin) { if (musicin != null) { try { musicin.Close(); } catch (IOException e) { throw new Exception("Could not close sound file", e); } } }
private bool is_mpeg_file_format(sound_file_format input_file_format) { switch (input_file_format) { case sound_file_format.sf_mp1: case sound_file_format.sf_mp2: case sound_file_format.sf_mp3: case sound_file_format.sf_mp123: return(true); default: break; } return(false); }