alsaplayer --status does not output whether there is
currently a file playing or not. Especially if the
playlist has exactly one item, there is no way to find
out whether the file has played completely or not.
To be fixed by adding a play/pause/stop indicator.
Rudolf Polzer <sfnet-tf@durchnull.de>
Logged In: YES
user_id=1402338
Originator: NO
Works for me.
When the file is playing:
$ alsaplayer --status
---------------- Session ----------------
name: alsaplayer-0
playlist_length: 1
volume: 1,00
speed: 100%
-------------- Current Track ------------
title: vencerem.mid
frames: 1356
length: 62 seconds
position: 28
-----------------------------------------
When the file in not playing:
$ alsaplayer --status
---------------- Session ----------------
name: alsaplayer-0
playlist_length: 1
volume: 1,00
speed: 100%
-------------- Current Track ------------
title: vencerem.mid
frames: 1356
length: 62 seconds
position: 0
-----------------------------------------
The position is 0 when the sound ended, so obviously 0 mean stop.
But it is no play/pause/stop indicator and no mean to know if a sound is playing or paused.
Logged In: YES
user_id=1402338
Originator: NO
Or you have to issue at least 2 status command and look if the position is changing. Yes -> playing; no -> paused.