audio_service icon indicating copy to clipboard operation
audio_service copied to clipboard

AudioProcessingState documentation

Open nt4f04uNd opened this issue 4 years ago • 4 comments

To which pages does your suggestion apply?

if we take an example and not use ConcatenatingAudioSource and apply the processing state as shown in the example, i.e

https://github.com/ryanheise/audio_service/blob/1591871aa7fe440f9c6cf1fd3bb84c6af0880aef/audio_service/example/lib/main.dart#L755-L760

there's no problem

however if do the same with any other resource, for example asset from https://github.com/ryanheise/audio_service/issues/654, it makes to reappear each time the player goes to idle state

(see the video)

Quote the sentences(s) from the documentation to be improved (if any) n/a

Describe your suggestion

  • document better on what AudioProcessingState affects
  • remove the map from the example and/or add a comment directly to the example about this behavior

https://user-images.githubusercontent.com/39104740/114426378-b2c2be80-9bc2-11eb-98a0-2361054b680f.mp4

nt4f04uNd avatar Apr 12 '21 16:04 nt4f04uNd

This sounds like it is an issue with just_audio asset loading. We should not expect the processing state to change to idle for a valid asset.

ryanheise avatar Apr 24 '21 12:04 ryanheise

FYI this happens to local files as well

nt4f04uNd avatar Apr 24 '21 12:04 nt4f04uNd

That would also be an issue with just_audio. Can you make an issue on that project?

ryanheise avatar Apr 24 '21 12:04 ryanheise

According to this diagram this is intended https://github.com/ryanheise/just_audio/tree/master/just_audio#the-state-model Do we want to change this model?

UPD: I filed an issue, let's discuss this there UPD2: oh, actually this is not intended, I see

image

nt4f04uNd avatar Apr 24 '21 13:04 nt4f04uNd