Displaying 3 results from an estimated 3 matches for "vcedit_st".
Did you mean:
vcedit_
2004 Nov 22
1
Editing comments in Vorbis files...
...g.dll and vorbis.dll linked dynamically! vcomment doesn't crash
linked dynamically with ogg.dll and vorbis.dll
#include <stdio.h>
#include <stdlib.h>
#include "vcedit.h"
#include "utf8.h"
#include "i18n.h"
int main()
{
FILE *oggFile;
FILE *heym;
vcedit_state *state;
vorbis_comment *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&quo...
2005 Nov 03
1
vcedit on non-vorbisI streams
...gg streams containing primarily Vorbis
data (i.e. first page is the Vorbis header, most
pages are Vorbis and a few are something else
e.g. metadata or lyrics).
I've managed to get something that works by:
1. During the header opening in vcedit_open
push non-Vorbis pages onto a buffer added to
vcedit_state and write them out after the Vorbis
bos, but before the 2nd and 3rd headers. This
causes all bos to end up correctly at the start
of the stream. It does shuffle non-bos pages
before the end of the last Vorbis header about,
but in a sensible stream the relative order of
pages from different co...
2003 Aug 25
3
mem leak when writing ogg vorbis comments
...re is used to put music on an Ogg-Vorbis enabled hardware project (PhatNoise PhatBox). It also does ripping and Ogg-Vorbis encoding. :)
Thanks!
Here's the code. I tried to get rid of as much superfluous code as possible.
BOOL
CHeaderInfoOGGBASIC::WriteFileTag(CString szFilePath)
{
vcedit_state *state;
vorbis_comment *pvcin;
FILE * in=NULL, *out=NULL;
char *buf=new char[1024];
// Read the initial tag
in = fopen(szFilePath, "rb");
if (in == NULL) {
// ... handle the failure case
return FALSE;...