[vorbis-dev] keyboard control of ogg123

Jim Danley Jim at Danley.com
Fri Mar 1 11:42:16 PST 2002



I am modifying ogg123 to include code to allow interactive keyboard
control over audio playback.  Most of what is needed is already finished.
However I am unhappy with the lack of responsiveness.

The pieces which are missing include:

1. stop audio playback immediately
2. determine how many seconds of data remain unplayed in the buffer
3. drop the buffer contents into the bit bucket

Why you might ask?  Well, if the audio file being played is a 22050 mono
format, and you press control-c or control-z you will notice that the time
between the key-press and the cessation of sound is from 3 to 5 seconds.
Admittedly, this might be the worst case and with audio formats using
a higher sample rate the delay is lessened, but the delay is still
noticeable. So, can you help me with the missing pieces?  I have read
the code and tried a few things, but nothing worked like I wanted.

Once I get this working properly I will clean up the code and submit a
patch to the list.  Thanks.

        Jim

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list