Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
bqcuong committed Nov 30, 2024
1 parent b441ce8 commit 6025834
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Empty file modified build_jar.sh
100644 → 100755
Empty file.
12 changes: 1 addition & 11 deletions src/org/recompile/mobile/PlatformPlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ public PlatformPlayer(InputStream stream, String type) {
controls = new Control[3];
contentType = type;

Log.d(TAG, "media type: " + type);

if (!Mobile.sound) {
player = new audioplayer();
}
Expand All @@ -60,7 +58,7 @@ public PlatformPlayer(InputStream stream, String type) {
else if (type.equalsIgnoreCase("audio/mpeg") || type.equalsIgnoreCase("audio/x-wav") || type.equalsIgnoreCase("audio/wav")) {
player = new midiPlayer(stream, ".wav");
}
else { /* TODO: Implement a player for amr and mpeg audio types */
else {
Log.d(TAG, "No Player For: " + contentType);
player = new audioplayer();
}
Expand All @@ -77,14 +75,6 @@ public PlatformPlayer(String locator) {
Log.d(TAG, "Player locator: " + locator);
}

public String encodeHexString(byte[] data, int len) {
StringBuilder sb = new StringBuilder();
for (int i = 0; i < len; i++) {
sb.append(String.format("%02x", data[i]));
}
return sb.toString();
}

final public String encodeMD5String(byte[] data) {
StringBuilder sb = new StringBuilder();
try {
Expand Down

0 comments on commit 6025834

Please sign in to comment.