[alsa-devel] For playback method of stopping after the execution aplay command
Hello
Use ALSA aplay command we have developed a device for audio reproduction.
After the audio playback at aplay command, forcibly or will not tell us what should take what way to halt the play. (After starting the aplay command, I tried a way to kill the process, but it could have taken to stop playing, rarely Linux There was to be a iowaitsleep state)
best regards
Hi,
On Nov 9 2016 10:36, 高井和也 wrote:
Hello
Use ALSA aplay command we have developed a device for audio reproduction.
After the audio playback at aplay command, forcibly or will not tell us what should take what way to halt the play. (After starting the aplay command, I tried a way to kill the process, but it could have taken to stop playing, rarely Linux There was to be a iowaitsleep state)
Do you look for a way to terminate aplay process by the other processes or a way to check a cause to terminate running aplay process?
Regards
Takashi Sakamoto
Hi,
Thank you for your reply.
The inquiry sorry unclear.
After I was playing at aplay command, we are looking for a way to terminate by the other process.
Regards
2016-11-09 11:47 GMT+09:00 Takashi Sakamoto o-takashi@sakamocchi.jp:
Hi,
On Nov 9 2016 10:36, 高井和也 wrote:
Hello
Use ALSA aplay command we have developed a device for audio reproduction.
After the audio playback at aplay command, forcibly or will not tell us what should take what way to halt the play. (After starting the aplay command, I tried a way to kill the process, but it could have taken to stop playing, rarely Linux There was to be a iowaitsleep state)
Do you look for a way to terminate aplay process by the other processes or a way to check a cause to terminate running aplay process?
Regards
Takashi Sakamoto
On Nov 9 2016 11:52, 高井和也 wrote:
After I was playing at aplay command, we are looking for a way to terminate by the other process.
The aplay is quite simple program and it has no implementation for modern IPC (inter process communication) mechanism. So we need to use a traditional fashion, sending UNIX signals to aplay process to terminate the process.
In detail, please see 'signal_handler()' and related codes in aplay.c: http://git.alsa-project.org/?p=alsa-utils.git;a=blob;f=aplay/aplay.c;h=2da7d...
Regards
Takashi Sakamoto
Thank you. i will try.
2016-11-09 12:23 GMT+09:00 Takashi Sakamoto o-takashi@sakamocchi.jp:
On Nov 9 2016 11:52, 高井和也 wrote:
After I was playing at aplay command, we are looking for a way to terminate by the other process.
The aplay is quite simple program and it has no implementation for modern IPC (inter process communication) mechanism. So we need to use a traditional fashion, sending UNIX signals to aplay process to terminate the process.
In detail, please see 'signal_handler()' and related codes in aplay.c: http://git.alsa-project.org/?p=alsa-utils.git;a=blob;f=aplay /aplay.c;h=2da7ddac1c81d24d20988d2719e4e66833277177;hb=HEAD#l385
Regards
Takashi Sakamoto
participants (2)
-
Takashi Sakamoto
-
高井和也