summaryrefslogtreecommitdiff
path: root/plugins/converter/converter.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-04-08 20:44:02 +0200
committerGravatar waker <wakeroid@gmail.com>2012-04-08 20:44:02 +0200
commitd9e6d749a5376ac1c613d832cec9437b3dfc6987 (patch)
tree05cf54281a6290df8ff4176bab35c9122648752e /plugins/converter/converter.h
parentda6a525031fd2a8bb1577220c1a2191834edfcca (diff)
converter: moved duplicate code into converter plugin and exposed via API, converter API is now v1.2
Diffstat (limited to 'plugins/converter/converter.h')
-rw-r--r--plugins/converter/converter.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/plugins/converter/converter.h b/plugins/converter/converter.h
index 1bad0449..530b192c 100644
--- a/plugins/converter/converter.h
+++ b/plugins/converter/converter.h
@@ -139,8 +139,9 @@ 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
@@ -163,7 +164,17 @@ typedef struct {
// new APIs for converter-1.2
/////////////////////////////
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, int write_to_source_folder, ddb_encoder_preset_t *encoder_preset, ddb_dsp_preset_t *dsp_preset, int *abort);
+ (*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