Skip to content

Commit

Permalink
No more LITE/FULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Larpoux committed Jan 14, 2022
1 parent 8a0f3e3 commit 73f71bd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tau_sound/lib/public/tau_player.dart
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,10 @@ class TauPlayer implements TauPlayerCallback {
/// User callback "whenFinished:"
TWhenFinished? _audioPlayerFinishedPlaying;
StreamController<PlaybackDisposition>? _playerController;
final StreamController<PlayerState> _playerStateControllerALVARO =
final StreamController<PlayerState> _playerStateController =
StreamController<PlayerState>.broadcast();

Stream<PlayerState> get onPlayerStateChanged => _playerStateControllerALVARO.stream;
Stream<PlayerState> get onPlayerStateChanged => _playerStateController.stream;

/// The default blocksize used when playing from Stream.
static const _blockSize = 4096;
Expand Down Expand Up @@ -684,7 +684,7 @@ class TauPlayer implements TauPlayerCallback {
//AudioDevice device = AudioDevice.speaker,
int audioFlags = outputToSpeaker | allowBlueToothA2DP | allowAirPlay,
}) async {
//_playerStateControllerALVARO.add(PlayerState.isStopped);
_playerStateController.add(PlayerState.isStopped);
_logger.d('FS:---> open()');
while (_openPlayerCompleter != null) {
_logger.w('Another openPlayer() in progress');
Expand Down Expand Up @@ -770,7 +770,7 @@ class TauPlayer implements TauPlayerCallback {
_closePlayerCompleter = null;
rethrow;
}
//await _playerStateControllerALVARO.close();
await _playerStateController.close();
_logger.d('FS:<--- close() ');
return completer!.future;
}
Expand Down Expand Up @@ -1015,7 +1015,7 @@ class TauPlayer implements TauPlayerCallback {
throw Exception('Invalid Input Node');
}
_playerState = state;
//_playerStateControllerALVARO.add(state);
_playerStateController.add(state);
} on Exception {
_startPlayerCompleter = null;
rethrow;
Expand Down Expand Up @@ -1072,7 +1072,7 @@ class TauPlayer implements TauPlayerCallback {
_stopPlayerCompleter = null;
rethrow;
}
//_playerStateControllerALVARO.add(_playerState);
_playerStateControlleradd(_playerState);

_logger.d('FS:<--- _stop ');
return completer!.future;
Expand Down Expand Up @@ -1102,7 +1102,7 @@ class TauPlayer implements TauPlayerCallback {
_pausePlayerCompleter = null;
rethrow;
}
//_playerStateControllerALVARO.add(_playerState);
_playerStateController.add(_playerState);
_logger.d('FS:<--- _pausePlayer ');
return completer!.future;
}
Expand Down Expand Up @@ -1131,7 +1131,7 @@ class TauPlayer implements TauPlayerCallback {
_resumePlayerCompleter = null;
rethrow;
}
//_playerStateControllerALVARO.add(_playerState);
_playerStateController.add(_playerState);
_logger.d('FS:<--- _resumePlayer');
return completer!.future;
}
Expand Down

0 comments on commit 73f71bd

Please sign in to comment.