plugins/ogg.c File Reference

The Plug-in that handles ogg vorbis files. More...

#include <time.h>
#include <string.h>
#include <locale.h>
#include "splt.h"
#include "ogg.h"
#include "ogg_utils.h"
#include "ogg_silence.h"
#include "ogg_new_stream_handler.h"
Include dependency graph for ogg.c:

Go to the source code of this file.

Defines

#define FIRST_GRANPOS   1
#define OGG_VERIFY_ERROR()

Functions

void splt_ogg_get_info (splt_state *state, FILE *file_input, int *error)
void splt_ogg_get_original_tags (const char *filename, splt_state *state, int *tag_error)
splt_ogg_statesplt_ogg_info (FILE *in, splt_state *state, int *error)
FILE * splt_ogg_open_file_read (splt_state *state, const char *filename, int *error)
double splt_ogg_split (const char *output_fname, splt_state *state, double sec_begin, double sec_end, short seekable, int adjust, float threshold, int shots, int *error, int save_end_point)
void splt_ogg_state_free (splt_state *state)
int splt_pl_check_plugin_is_for_file (splt_state *state, int *error)
void splt_pl_clear_original_tags (splt_original_tags *original_tags)
void splt_pl_end (splt_state *state, int *error)
void splt_pl_init (splt_state *state, int *error)
int splt_pl_scan_silence (splt_state *state, int *error)
int splt_pl_scan_trim_silence (splt_state *state, int *error)
void splt_pl_set_original_tags (splt_state *state, int *error)
void splt_pl_set_plugin_info (splt_plugin_info *info, int *error)
double splt_pl_split (splt_state *state, const char *final_fname, double begin_point, double end_point, int *error, int save_end_point)

Detailed Description

The Plug-in that handles ogg vorbis files.

Definition in file ogg.c.


Define Documentation

 
#define OGG_VERIFY_ERROR (  ) 
Value:
if (err != SPLT_OK) \
{ \
*tag_error = err; \
return; \
};

Definition at line 277 of file ogg.c.


Function Documentation

splt_ogg_state * splt_ogg_info ( FILE *  in,
splt_state state,
int *  error 
)

Notes:

  • if ogg_stream_init() returns -1, then the stream was incorrectly initialized => coding error
  • some 'vorbis_synthesis_*' functions return OV_EINVAL for bad argument but we don't check that error code because this is not supposed to happend; if it happends, it's a coding error.

Definition at line 505 of file ogg.c.

References splt_state::codec, and splt_t_get_filename_to_split().

Here is the call graph for this function:


Generated on 3 Aug 2012 for libmp3splt by  doxygen 1.6.1