[Vorbis] ogg_sync_buffer() memory alignment
Patrick Byrne
pbyrne at frontier.co.uk
Fri Mar 16 10:22:59 PDT 2007
I am writing an Ogg Vorbis decoder for win32.
I want a memory buffer which is aligned to the disk sector size (512
bytes on hard disk, 2048 bytes on cd/dvd), so that the win32 function
ReadFile can be persuaded to do 'unbuffered IO'.
Unfortunately, the ogg_sync_buffer() call gives me a pointer from its
own, internally allocated buffer. I have found no docs to indicate that
this would be "page-aligned' (say 4k memory pages).
Hopefully I can alter the source to guarantee buffer alignment (about to
check), but has this issue been addressed elsewhere, please?
Thanks.
--
Patrick Byrne,
Frontier Developments Ltd
dd +44 (0)1223 394300
fax +44 (0)1223 420005
More information about the Vorbis
mailing list