command line player

Dave Schwartz <[email protected]> Sun, 29 May 2005 08:53:44 +0100
Newsgroups gmane.comp.multimedia.xmms.devel
Message-ID <[email protected]>
Hi List,

I am not sure if this is the right forum to ask this question but
couldn't help as my past 2 days of research didn't help much.


I want to write a command line player for playing sound. Basic
capability should include

1. playing a song of certain time length from duration t1 to time t2.
For example, if a song is of duration 60 seconds, user wants to play
the song from say 5th second to the 30th second of the duration of the
song. Something like: play <songname> -t1 5 -t2 30

2. As the song plays, I want to print the lyrics on the screen. 
I believe one of the strategy could be storing the lyrics in the song
file and as the song plays, I read the input lyrics stored in the song
and spit it out to the output.

For this reqirement, how do I store the lyrics in the song itself.
Maybe, in some extra tag or redundant information section. I am not
sure.


I want to do this project on Linux. I did check out the OSS website
for any obvious example of players/sample programs but couldn't find
any. The APIs document sounds to be helpful but is too spread-up to
start.


Any ideas on what sound processing library I should use, or go about
writing this utility.

Looking forward to hearing from the group.

Gracias,
Dave