Git Product home page Git Product logo

Comments (4)

mp3splt avatar mp3splt commented on June 2, 2024

Imported from SourceForge on 2020-09-13 14:23:42
Created by io_alex_2004 on 2006-01-01 23:08:06
Original: https://sourceforge.net/p/mp3splt/feature-requests/27/#667f


Logged In: YES
user_id=1009175

I am sorry but I had no time to write documentation. As
libmp3splt is not yet finished, I'm afraid that the function
body might change (for the "progress bar" for example, to
call an external function from the library provided by a
pointer).

I would suggest you to wait at least the 0.3 version.

Although, if you want to write your application using
libmp3splt, you can always send me a mail and I will help
you with that. You can find my mail at the end of the README
file from the libmp3splt directory. (I speak french, english
and romanian if this helps you)

We plan to rewrite mp3splt using libmp3splt, so after that
you will have a simple example (comparing to mp3splt-gtk).

This example seems correct. It does a simple split, from
1000 to 2000 (hundreths of seconds) to the file 1.mp3 in the
current directory (although ".\1.mp3" seems a bit strange).

Alex

from mp3splt.

mp3splt avatar mp3splt commented on June 2, 2024

Imported from SourceForge on 2020-09-13 14:23:45
Created by io_alex_2004 on 2006-01-02 00:52:10
Original: https://sourceforge.net/p/mp3splt/feature-requests/27/#9a64


Logged In: YES
user_id=1009175

This example is more correct :


#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <libmp3splt/mp3split.h>

//Warning, libmp3splt is still in developpement phase, many
//things will change from one version to another
int main(void)
{
int error;
splt_state *a;
splt_options b;

//libmp3splt version 0.2.1
//must be replaced with
//b.split_mode = OPTION_NORMAL_MODE in CVS
b.option_wrap_mode = 0;
b.option_silence_mode = 0;
b.option_time_split = 0;
b.option_mp3_error_mode = 0;

//silence auto adjust off
b.option_auto_adjust = 0;
//frame mode for the mp3 (useful for VBR)
b.option_mp3_frame_mode = 1;

a = libmp3splt_create_new_state (NULL, &error);
a->splitpoints[0] = 1000.0;
a->splitpoints[1] = 2000.0;

//name of the output file (without extension)
snprintf((char *)a->fn[0],255,"output");

//split the file in the current directory named
//"input.mp3" on unix-like systems
error = libmp3splt_split_file
((unsigned char *)"./input.mp3",
a, 2, (unsigned char *)"", b);

libmp3splt_free_left_variables (a);
}

Alex

from mp3splt.

mp3splt avatar mp3splt commented on June 2, 2024

Imported from SourceForge on 2020-09-13 14:23:48
Created by io_alex_2004 on 2006-05-06 03:24:07
Original: https://sourceforge.net/p/mp3splt/feature-requests/27/#2b0d


Logged In: YES
user_id=1009175

Warning, this post is deprecated. API has completely changed.

Documentation and examples are being written in CVS for the
new API. Use the library at your own risk, API may still
change. However, all my efforts are to stabilise it.

Cheers,
Alex

from mp3splt.

mp3splt avatar mp3splt commented on June 2, 2024

Imported from SourceForge on 2020-09-13 14:23:51
Created by io_alex_2004 on 2012-10-10 20:37:48
Original: https://sourceforge.net/p/mp3splt/feature-requests/27/#1a83


I have almost finished stabilizing the libmp3splt API and written full doxygen documentation for it.
The documentation will be posted officialy online with the next release.
Here is a preview of the current development version:
http://ioalex.net/testing_downloads/libmp3splt_api/
I am closing the ticket now.
Please repost here if necessary

  • status: open --> closed
  • milestone: --> Next_Release_(example)

from mp3splt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.