decoder_api: added function decoder_replay_gain()
This function replaces the replay_gain_info parameter for decoder_data(). This allows the decoder to announce replay gain changes, instead of having to pass the same object over and over.
This commit is contained in:
@@ -146,8 +146,7 @@ mpd_mpg123_file_decode(struct decoder *decoder, const char *path_fs)
|
||||
|
||||
/* send to MPD */
|
||||
|
||||
cmd = decoder_data(decoder, NULL, buffer, nbytes,
|
||||
0, NULL);
|
||||
cmd = decoder_data(decoder, NULL, buffer, nbytes, 0);
|
||||
|
||||
/* seeking not yet implemented */
|
||||
} while (cmd == DECODE_COMMAND_NONE);
|
||||
|
||||
Reference in New Issue
Block a user