After looking through the documentation of vorbisfile, it appears that all comments are readonly using that api. I checked the code for vorbiscomment and it appears to it needs to rewrite the entire file when editing comments. Does a description or API of in--place editing and updating of comments exist? Thx. -- --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> Does a description or API of in--place editing and updating of > comments exist?There is currently no API to do so. vorbiscomment (i.e. the portable core of vorbiscomment, vcedit.[ch]) will probably eventually be extended to do in-place editing of comments for the cases where it is possible. Note, however, that it often isn't. If the total length of the comments decreases, then you can only do it in-place if you add padding (which is possible, but often undesirable). If the total length _increases_ (probably more common), then you cannot do it in-place at all unless padding already exists. Future vcedit changes will be capable of using padding, but will only leave padding (and create new padding) when explicitly requested (i.e. the default will be to NOT have any padding in the resulting file). I don't intend to do this particularly soon, though - in-place editing is a fairly minor issue, and I have many other things I'd rather spend my time on. Mike --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
I made a Delphi unit for in place comment editing, so if you feel comfortable with Object Pascal instead of C/C++ code you can use that one. John Edwards has made a modified oggenc which among other things has the possibility to add a small amount of padding in the comment packet. http://homepage.ntlworld.com/jfe1205/oggenc2.1.zip Regards, Erik <p>On 15 Dec 2002, Kristian G. Kvilekval wrote:> > After looking through the documentation of vorbisfile, > it appears that all comments are readonly > using that api. > > I checked the code for vorbiscomment and it appears to > it needs to rewrite the entire file when editing comments. > > Does a description or API of in--place editing and updating of > comments exist? > > Thx. > > -- > > --- >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@xiph.org' > containing only the word 'unsubscribe' in the body. No subject is needed. > Unsubscribe messages sent to the list will be ignored/filtered. >-------------- next part -------------- A non-text attachment was scrubbed... Name: OggTag.zip Type: application/zip Size: 6782 bytes Desc: OggTag.zip Url : http://lists.xiph.org/pipermail/vorbis-dev/attachments/20021216/1b134e20/OggTag-0001.zip