Author: remi
Date: 2008-11-26 17:50:05 +0100 (Wed, 26 Nov 2008)
New Revision: 2849
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneWaveListFrame.java
Log:
* removed and unused private method
* removed a debug print
Modified:
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneWaveListFrame.java
===================================================================
---
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneWaveListFrame.java
2008-11-26 16:49:19 UTC (rev 2848)
+++
software_suite_v2/software/tools/attitunesStudio/trunk/src/GUI/AttituneWaveListFrame.java
2008-11-26 16:50:05 UTC (rev 2849)
@@ -208,52 +208,6 @@
}
/*
- * Check the format of a wave file
- */
- private boolean checkWavFormat(String waveFile)
- {
- File soundFile = new File(waveFile);
-
- if (!soundFile.exists())
- {
- return false;
- }
-
- AudioInputStream audioInputStream = null;
- try
- {
- audioInputStream =
AudioSystem.getAudioInputStream(soundFile);
- }
- catch (UnsupportedAudioFileException e1)
- {
- return false;
- }
- catch (IOException e1)
- {
- return false;
- }
-
- AudioFormat format = audioInputStream.getFormat();
-
- if (format.getSampleRate() != 8000.0)
- {
- return false;
- }
-
- if (format.getSampleSizeInBits() != 8)
- {
- return false;
- }
-
- if (format.getChannels() != 1)
- {
- return false;
- }
-
- return true;
- }
-
- /*
* Event on close button pressed
*/
private void jButtonCloseMousePressed(MouseEvent evt)
@@ -290,7 +244,6 @@
}
waveOutFilename = waveOutFilename.replace(" ", "_");
tmpWav = new File(tempPath + waveOutFilename);
- System.out.println(tmpWav.getPath());
/* Attempt to convert the file */
if (!JSimpleAudioConverter.mp3OrWavToWav(selFile.getPath(),
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn