fix: remove dead CalculateByteOffset C# shim; guard AudioPlayer.calculateByteOffset on parsed format

This commit is contained in:
daniel-c-harvey
2026-06-11 06:13:52 -04:00
parent 0b0bcb3dee
commit 009f565b73
2 changed files with 1 additions and 12 deletions
@@ -367,6 +367,7 @@ export class AudioPlayer {
* Calculate byte offset for a time position (for C# layer)
*/
calculateByteOffset(positionSeconds: number): number {
if (!this.streamDecoder.getFormatInfo()) return 0;
return this.streamDecoder.calculateByteOffset(positionSeconds);
}