File tree Expand file tree Collapse file tree
AudioCuesheetEditor/Services/Audio Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ private set
4747 }
4848 }
4949 public Track ? CurrentlyPlayingTrack => _sessionStateContainer . Cuesheet . Audiofiles . SelectMany ( x => x . Tracks ) . SingleOrDefault ( x => x . Begin . HasValue == true && x . End . HasValue == true && x . Begin <= CurrentPosition && x . End > CurrentPosition ) ;
50+ //TODO: Doesn't get reset when cuesheet or application is reset
5051 public TimeSpan ? TotalTime
5152 {
5253 get
@@ -63,6 +64,7 @@ public TimeSpan? TotalTime
6364 public Boolean IsPlaybackPossible => _sessionStateContainer . Cuesheet . Audiofiles . Any ( x => string . IsNullOrEmpty ( x . ObjectURL ) == false ) ;
6465 public Boolean IsPreviousPossible => ( CurrentlyPlayingTrack != null ) && _sessionStateContainer . Cuesheet . Audiofiles . SelectMany ( x => x . Tracks ) . FirstOrDefault ( x => x . End <= CurrentlyPlayingTrack . Begin ) != null ;
6566 public Boolean IsNextPossible => ( CurrentlyPlayingTrack != null ) && _sessionStateContainer . Cuesheet . Audiofiles . SelectMany ( x => x . Tracks ) . FirstOrDefault ( x => x . Begin >= CurrentlyPlayingTrack . End ) != null ;
67+ //TODO: Doesn't stop playback when resetting cuesheet or application
6668 public Boolean IsPlaying => _currentlyPlayingAudiofile != null ;
6769
6870 public async Task InitializeAsync ( )
@@ -271,6 +273,7 @@ async void UpdateCurrentPosition(object? state)
271273 }
272274 }
273275 CalculateDurationsBeforeCurrentlyPlayingAudiofile ( ) ;
276+ //TODO: When audio is stopped the current position seems to be 00:00:00 and not --:--:--
274277 var currentSecondsInCurrentlyPlayingAudiofile = await _jsRuntime . InvokeAsync < double > ( "audioInterop.getAudioCurrentTime" ) ;
275278 if ( _audiofileDurationsBeforeCurrentlyPlayingAudiofile . HasValue )
276279 {
You can’t perform that action at this time.
0 commit comments