diff options
author | waker <wakeroid@gmail.com> | 2010-11-13 21:35:53 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2010-11-13 21:35:53 +0100 |
commit | 086360352150cd032523090bbd75eb2f4208e6ed (patch) | |
tree | 166ebaa55e0cafa237ad821c77d178d08cc4b6a2 /deadbeef.h | |
parent | 607479be3172aed4c5f906dcb326089e1d5538e6 (diff) |
implemented conversion between streams with different channel masks
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -685,12 +685,7 @@ typedef struct DB_decoder_s { // read is called by streamer to decode specified number of bytes // must return number of bytes that were successfully decoded (sample aligned) - - // read_int16 must always output 16 bit signed integer samples - int (*read_int16) (DB_fileinfo_t *info, char *buffer, int size); - - // read_float32 must always output 32 bit floating point samples - int (*read_float32) (DB_fileinfo_t *info, char *buffer, int size); + int (*read) (DB_fileinfo_t *info, char *buffer, int nbytes); int (*seek) (DB_fileinfo_t *info, float seconds); @@ -747,7 +742,7 @@ typedef struct DB_dsp_s { // process gets called before SRC // stereo samples are stored in interleaved format // stereo sample is counted as 1 sample - int (*process_int16) (int16_t *samples, int nsamples, int nch, int bps, int srate); + int (*process) (char * restrict samples, ddb_waveformat_t * restrict fmt); void (*reset) (void); void (*enable) (int e); int (*enabled) (void); |