I've added ao_get_latency to my copy of ao. This function allows you to discover the number of bytes that are buffered between yourself and the speakers. Status for the various devices: * null - implemented (just returns 0.) * wav - implemented (just returns 0.) * esd - implemented but untested. * oss - implemented. * alsa - implemented. * arts - implemented. * solaris - stub. * irix - stub. The number returned should be fairly reliable. It is useful for anyone who wants to do something like synchronise a level meter with actual sound output time. Rik <HR NOSHADE> <UL> <LI>text/plain attachment: ao.diff </UL> -------------- next part -------------- A non-text attachment was scrubbed... Name: ao.diff Type: application/octet-stream Size: 7618 bytes Desc: not available Url : http://lists.xiph.org/pipermail/vorbis/attachments/20010119/b1911915/ao-0001.obj
> I've added ao_get_latency to my copy of ao.Thanks for the patch. BTW, these things should go to vorbis-dev to make sure the module maintainers see them. Monty --- >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-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
#if Rik Hemsley> + return (esd_get_latency((ao_esd_internal_t *)state->sock));Should be> + return esd_get_latency(((ao_esd_internal_t *)state)->sock);I still haven't tested this, because esd doesn't answer me for some reason. At least it looks right :} Cheers, Rik --- >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-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.