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
@@ -128,18 +128,6 @@ public class AudioInteropService : IAsyncDisposable
}
}
public async Task<long> CalculateByteOffset(string playerId, double positionSeconds)
{
try
{
return (long)await _jsRuntime.InvokeAsync<double>("DeepDrftAudio.calculateByteOffset", playerId, positionSeconds);
}
catch
{
return 0;
}
}
public async Task<AudioOperationResult> ReinitializeFromOffset(string playerId, long totalStreamLength, double seekPosition)
{
return await InvokeJsAsync<AudioOperationResult>("DeepDrftAudio.reinitializeFromOffset", playerId, totalStreamLength, seekPosition);