summaryrefslogtreecommitdiff
path: root/plugins/converter/converter.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/converter/converter.h')
-rw-r--r--plugins/converter/converter.h24
1 files changed, 21 insertions, 3 deletions
diff --git a/plugins/converter/converter.h b/plugins/converter/converter.h
index d58c5b0b..530b192c 100644
--- a/plugins/converter/converter.h
+++ b/plugins/converter/converter.h
@@ -1,6 +1,6 @@
/*
DeaDBeeF - ultimate music player for GNU/Linux systems with X11
- Copyright (C) 2009-2011 Alexey Yakovenko <waker@users.sourceforge.net>
+ Copyright (C) 2009-2012 Alexey Yakovenko <waker@users.sourceforge.net>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
@@ -139,11 +139,13 @@ typedef struct {
/////////////////////////////
+ // this function is deprecated, please don't use directly
void
- (*get_output_path) (DB_playItem_t *it, const char *outfolder, const char *outfile, ddb_encoder_preset_t *encoder_preset, char *out, int sz);
+ (*get_output_path_1_0) (DB_playItem_t *it, const char *outfolder, const char *outfile, ddb_encoder_preset_t *encoder_preset, char *out, int sz);
+ // this function is deprecated, please don't use directly
int
- (*convert) (DB_playItem_t *it, const char *outfolder, const char *outfile, int output_bps, int output_is_float, int preserve_folder_structure, const char *root_folder, ddb_encoder_preset_t *encoder_preset, ddb_dsp_preset_t *dsp_preset, int *abort);
+ (*convert_1_0) (DB_playItem_t *it, const char *outfolder, const char *outfile, int output_bps, int output_is_float, int preserve_folder_structure, const char *root_folder, ddb_encoder_preset_t *encoder_preset, ddb_dsp_preset_t *dsp_preset, int *abort);
/////////////////////////////
// new APIs for converter-1.1
@@ -157,6 +159,22 @@ typedef struct {
(*free_encoder_presets) (void);
void
(*free_dsp_presets) (void);
+
+ /////////////////////////////
+ // new APIs for converter-1.2
+ /////////////////////////////
+ int
+ (*convert) (
+ DB_playItem_t *it, // track to be converted
+ const char *outpath, // final path to write the file (should normally be obtained using get_output_path)
+ int output_bps, // stream should be pre-converted to this resolution
+ int output_is_float, // stream should be converted to float
+ ddb_encoder_preset_t *encoder_preset, // encoder preset to use
+ ddb_dsp_preset_t *dsp_preset, // dsp preset to use
+ int *abort // *abort will be checked regularly, conversion will be interrupted if it's non-zero
+ );
+ void
+ (*get_output_path) (DB_playItem_t *it, const char *outfolder, const char *outfile, ddb_encoder_preset_t *encoder_preset, int preserve_folder_structure, const char *root_folder, int write_to_source_folder, char *out, int sz);
} ddb_converter_t;
#endif