> Whoa! Hm... what happens when you press "pause"? Does winamp discard the 5 
> secs?
> Or... hm, you can specifically tell the device to pause playback, regardless 
> of filled buffers?
> Of course, another thing is fast forward play.

Winamps' output plugin interface contains the following methods:
    int (*Open)(int samplerate, int numchannels, int bitspersamp, int 
bufferlenms, int prebufferms);
    void (*Close)();
    int (*Write)(char *buf, int len);
    int (*CanWrite)();
    int (*IsPlaying)();
    int (*Pause)(int pause);
    void (*SetVolume)(int volume);
    void (*SetPan)(int pan);
    void (*Flush)(int t);

So, I assume, Pause() thing does the trick here. You might consider adding
similar functionality to mpg123 output module interface.
I believe all decent audio APIs allow application to pause/resume playback
without flushing buffers. ALSA and winmm surely do.



_______________________________________________
Lynx-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lynx-dev

Reply via email to