-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] aplay: make stream pause/resume automation/script friendly #155
Comments
Hi @aiChaoSONG , I'm an author of axfer, which has compatibility to aplay as much as possible to obsolete As long as reading the issue, you need inter process communication to aplay process
I've mention about relevant issues in
At the first place, occupation of standard input has a conflict in the case of PCM playback
I implement suspend/resume by In
The explicit description about difference between aplay and axfer to handle signals:
I'm glad if they are helpful to you. [1] https://github.com/alsa-project/alsa-utils/blob/master/axfer/axfer-transfer.1#L781 Regards |
@takaswie wow, this is awesome, thank you. Actually, we use the -i feature to test pause-push-release in the kernel. Typo caught: aboeted -> aborted
|
Indeed. I filed a patch to fix it. |
There is an
-i
option for interactive mode, in the interactive mode, we are able to pause/resume the playback/capture stream with SPACE key, which is very good. However we have to do this in a terminal, because there is a isatty check on the stdin, this is not friendly for automation/script to test audio pause/resume feature with aplay.Is it possible to remove the isatty check, so that we can do pause/result test with a single stdin redirection? Another possible fix is that we can make use of the SIGUSR2, so that we pause/resume stream by sending signal to the aplay process.
@perexg
The text was updated successfully, but these errors were encountered: