Ativerc / openly-busy

Lets everyone around you (office/home) know that you're busy in an online meeting.
2 stars 0 forks source link

Lag between closing the media application and openlybusy-server reporting NOT_BUSY status #1

Open Ativerc opened 3 years ago

Ativerc commented 3 years ago

There's a 6 second lag when I close an application which requires Mic access to when openlybusy-server reports NOT_BUSY status.

This is because the project uses inotifywait to monitor /dev/snd/pcmC0D0c which is itself updated after 6 seconds of closing the media application.

While this is not a huge problem(besides me wanting my project to be perfect). But problems can arise if the user starts a media application with mic access within this 6-second gap. Haven't tested for this.

Ativerc commented 3 years ago

Even /proc/asound/card0/pcm0c/sub0/status file (which is used to monitor status during a cold start) is updated after 6 seconds.

Need a better source to monitor.