Browse Source

Fix hl mp3_open signature (#1175)

Yuxiao Mao 1 year ago
parent
commit
96ebf27c28
1 changed files with 2 additions and 2 deletions
  1. 2 2
      hxd/snd/Mp3Data.hx

+ 2 - 2
hxd/snd/Mp3Data.hx

@@ -99,7 +99,7 @@ class Mp3Data extends Data {
 		this.frame = haxe.io.Bytes.alloc(1152*channels*4); // 2 channels, F32.
 		this.frame = haxe.io.Bytes.alloc(1152*channels*4); // 2 channels, F32.
 		this.currentSample = -1;
 		this.currentSample = -1;
 		this.currentFrame = -1;
 		this.currentFrame = -1;
-		this.reader = mp3_open(bytes, bytes.length);
+		this.reader = mp3_open();
 
 
 		#end
 		#end
 	}
 	}
@@ -214,7 +214,7 @@ class Mp3Data extends Data {
 		mp3_decode_frame(reader, bytes, bytes.length, frameOffsets[to], frame, frame.length, 0);
 		mp3_decode_frame(reader, bytes, bytes.length, frameOffsets[to], frame, frame.length, 0);
 	}
 	}
 
 
-	@:hlNative("fmt", "mp3_open") static function mp3_open( bytes : hl.Bytes, size : Int ) : Mp3File {
+	@:hlNative("fmt", "mp3_open") static function mp3_open() : Mp3File {
 		return null;
 		return null;
 	}
 	}