search for: vcedit_com

Displaying 3 results from an estimated 3 matches for "vcedit_com".

2004 Nov 22
1
Editing comments in Vorbis files...
...*vc; if ((oggFile = fopen("InFile.ogg", "rb")) == NULL) exit(0); if ((heym = fopen("OutFile.ogg", "wb")) == NULL) exit(0); state = vcedit_new_state(); if (vcedit_open(state, oggFile) < 0) { printf("erreur\n"); exit(0); } //vc = vcedit_comments(state); vcedit_write(state, heym); vcedit_clear(state); fclose(oggFile); fclose(heym); return 0; } Any idea?? Gabriel Lavoie
2007 Feb 07
1
how to delete all comments?
okay all i want to do now is just DELETE any and all comments from a file. here's what I do: // open the file and get access to comments vcedit_open(i_vcStateP, i_fileP); i_commentsP = vcedit_comments(i_vcStateP); // now delete all existing comments vorbis_comment_clear(i_commentsP); <-- is this the correct way?? vorbis_comment_init(i_commentsP); <-- do i need to do this since it's already clear?? // now update the changes, is this correct?? vcedit_write(i_vcStateP, i_fileP);...
2001 Sep 30
3
UTF-8 stuff
...oding); +void print_comments(FILE *out, vorbis_comment *vc); +int add_comment(char *line, vorbis_comment *vc); param_t *new_param(void); void parse_options(int argc, char *argv[], param_t *param); @@ -98,7 +97,7 @@ /* extract and display the comments */ vc = vcedit_comments(state); - print_comments(param->com, vc, param->encoding); + print_comments(param->com, vc); /* done */ vcedit_clear(state); @@ -128,7 +127,7 @@ for(i=0; i < param->commentcount; i++) { - if(add_comment(...