Skip to content

Commit

Permalink
Ups, forgot to uncomment it xD
Browse files Browse the repository at this point in the history
Also, tiny fix for the wav header writing, now it works :D
  • Loading branch information
mrcdk committed Mar 24, 2012
1 parent 8193db7 commit 187560e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parsers/src/org/open2jam/parsers/BMSWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static void export(Chart chart, String path) throws IOException

buffer.close();

//chart.copySampleFiles(dir);
chart.copySampleFiles(dir);
}

private static void makeHeader(BufferedWriter buffer, Chart chart) throws IOException
Expand Down
2 changes: 1 addition & 1 deletion parsers/src/org/open2jam/parsers/utils/SampleData.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public static byte[] writeHeader(WAVHeader header) throws IOException {
out.write(ByteHelper.intToByteArray(header.chunk_size+36), 0, 4);
out.write("WAVE".getBytes());
out.write("fmt ".getBytes());
out.write(ByteHelper.shortToByteArray((short) 0x10), 0, 2);
out.write(ByteHelper.intToByteArray(0x10), 0, 4);
out.write(ByteHelper.shortToByteArray(header.audio_format), 0, 2);
out.write(ByteHelper.shortToByteArray(header.num_channels), 0, 2);
out.write(ByteHelper.intToByteArray(header.sample_rate), 0, 4);
Expand Down

0 comments on commit 187560e

Please sign in to comment.