Update README

main
Nes370 2024-07-25 18:28:35 -07:00
parent 3095cd02b7
commit 50ca7a7d7e
2 changed files with 136 additions and 108 deletions

View File

@ -4,11 +4,17 @@
### Requirements ### Requirements
- *RR6AudioExtractor* requires that you have Java SE 17 or higher installed to run. - You must have Java SE 17 or higher installed to run *RR6AudioExtractor*.
- To install, download the latest JRE (recommended) or JDK from [Adoptium](https://adoptium.net/temurin/archive/?version=17), or JDK from [Oracle](https://www.oracle.com/java/technologies/downloads/#java17). - To install, download the latest JRE (recommended) or JDK from [Adoptium](https://adoptium.net/temurin/archive/?version=17), or JDK from [Oracle](https://www.oracle.com/java/technologies/downloads/#java17).
### Usage ### Usage
*RR6AudioExtractor* is a command-line application. To use it:
1. Open a Command-Line Interface (CLI)
2. Navigate to the directory containing `RR6AudioExtractor.jar`
3. Enter one of the following commands:
Launch console interface Launch console interface
``` ```
java -jar RR6AudioExtractor.java java -jar RR6AudioExtractor.java
@ -50,7 +56,6 @@ java -jar RR6AudioExtractor.java print <color> <text>
### Referenced Libraries ### Referenced Libraries
*RR6AudioExtractor* makes use of several Java libraries:
- [Apache Commons Codec](https://commons.apache.org/proper/commons-codec/) v1.17.1 - [Apache Commons Codec](https://commons.apache.org/proper/commons-codec/) v1.17.1
- [Apache Commons CSV](https://commons.apache.org/proper/commons-csv/) v1.11.0 - [Apache Commons CSV](https://commons.apache.org/proper/commons-csv/) v1.11.0
- [Apache Commons IO](https://commons.apache.org/proper/commons-io/) v2.16.1 - [Apache Commons IO](https://commons.apache.org/proper/commons-io/) v2.16.1
@ -61,4 +66,3 @@ java -jar RR6AudioExtractor.java print <color> <text>
- [*Xbox Image Browser*](https://digiex.net/threads/xbox-360-image-browser-2-9-0-350-xiso-browser-and-extractor.3136/) by Redline99 - [*Xbox Image Browser*](https://digiex.net/threads/xbox-360-image-browser-2-9-0-350-xiso-browser-and-extractor.3136/) by Redline99
- For extracting and replacing files from Xbox Disc Images (`ISO`). - For extracting and replacing files from Xbox Disc Images (`ISO`).

View File

@ -55,6 +55,8 @@ public class AudioExtractor {
*/ */
public static void main(String[] args) throws URISyntaxException, InterruptedException { public static void main(String[] args) throws URISyntaxException, InterruptedException {
if(args.length == 0) {
// Print Audio Extractor logo // Print Audio Extractor logo
if(CMD_MODE) { if(CMD_MODE) {
@ -130,12 +132,22 @@ public class AudioExtractor {
case "convert": { case "convert": {
File audioFile = retrieveAudio(reader); // Confirms file has WAV/XMA/FLAC extension + header File audioFile = retrieveAudio(reader); // Confirms file has WAV/XMA/FLAC extension + header
if(audioFile.isFile()) {
String extension = FilenameUtils.getExtension(audioFile.getName()); // if(audioFile.isFile()) {
// Ensure file has the right encoding (differentiate between WAV/XMA) // String extension = FilenameUtils.getExtension(audioFile.getName());
int encoding = 0; // // Ensure file has the right encoding (differentiate between WAV/XMA)
// RandomAccessFile raf = new RandomAccessFile(audioFile, "r"); // int encoding = 0;
// convert(audioFile, encoding); // RandomAccessFile raf;
// try {
// raf = new RandomAccessFile(audioFile, "r");
// raf.seek(0x0);
// raf.readInt();
// } catch (FileNotFoundException e) {
// // TODO Auto-generated catch block
// e.printStackTrace();
// }
convert(audioFile, extension);
} }
} }
@ -164,6 +176,18 @@ public class AudioExtractor {
try { reader.readLine(); } catch (Exception e) {} try { reader.readLine(); } catch (Exception e) {}
} }
}
}
/**
* Converts an audio file to the target format.
*
* @param audioFile
* @param format
*/
private static void convert(File audioFile, String format) {
} }