summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2010-12-10 21:56:11 +0100
committerGravatar waker <wakeroid@gmail.com>2010-12-10 21:56:11 +0100
commit27867ba347cb6f37d2d1bfa672540860ebc095b7 (patch)
tree6efd7c0824de7eccf1169edc64dddcf45af380b9 /deadbeef.h
parent5e5df4c460edaed29a25e5b6c976267cd5062874 (diff)
exposed pcm_convert via plugin API;
DSP presets are now being used and are working in converter; implemented support for converting via temp file in converter
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 2357c407..57cc035b 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -32,6 +32,7 @@
#include <stdio.h>
#ifdef __cplusplus
+#define restrict // shut up g++
extern "C" {
#endif
@@ -280,6 +281,14 @@ typedef struct DB_md5_s {
char data[88];
} DB_md5_t;
+typedef struct {
+ int bps;
+ int is_float; // bps must be 32 if this is true
+ int channels;
+ int samplerate;
+ uint32_t channelmask;
+} ddb_waveformat_t;
+
// forward decl for plugin struct
struct DB_plugin_s;
@@ -533,6 +542,9 @@ typedef struct {
void (*plug_trigger_event_playlistchanged) (void);
// misc utilities
int (*is_local_file) (const char *fname); // returns 1 for local filename, 0 otherwise
+
+ // pcm utilities
+ int (*pcm_convert) (const ddb_waveformat_t * restrict inputfmt, const char * restrict input, const ddb_waveformat_t * restrict outputfmt, char * restrict output, int inputsize);
} DB_functions_t;
enum {
@@ -651,14 +663,6 @@ enum {
DDB_SPEAKER_TOP_BACK_RIGHT = 0x20000
};
-typedef struct {
- int bps;
- int is_float; // bps must be 32 if this is true
- int channels;
- int samplerate;
- uint32_t channelmask;
-} ddb_waveformat_t;
-
typedef struct DB_fileinfo_s {
struct DB_decoder_s *plugin;