Imported from SourceForge on 2020-09-13 04:25:56
Created by weongyo on 2006-01-01 19:16:20
Original: https://sourceforge.net/p/mp3splt/feature-requests/27
Hello.
I downloaded libmp3splt v0.2.1 recently. But I can't
any example in that sources. Even i can't in google.
So i want to add some examples in libmp3splt.
Maybe i think that nobody can't use libmp3splt if he
wouldn't analyze mp3splt sources.
So, I write a example which is very simple.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <libmp3splt/mp3split.h>
int main (void)
{
int error;
splt_state *a;
splt_options b, *c;
c = &b;
memset (c, '\0', sizeof (splt_options));
a = libmp3splt_create_new_state (NULL, &error);
a->splitpoints[0] = 1000.0;
a->splitpoints[1] = 2000.0;
libmp3splt_split_file (".\1.mp3", a, 2, "", b);
libmp3splt_free_left_variables (a);
}
i spend my time to write this code for 2 hours.
i hope that nobody don't over again like me.
Thanks. and sorry for my fool english.