decoder/wavpack: rename format_samples_float() to format_samples_nop()
This commit is contained in:
parent
d9c29a2c4f
commit
61296cedd2
@ -118,10 +118,10 @@ format_samples_int(int bytes_per_sample, void *buffer, uint32_t count)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This function converts floating point sample data to 24-bit integer.
|
* No conversion necessary.
|
||||||
*/
|
*/
|
||||||
static void
|
static void
|
||||||
format_samples_float(gcc_unused int bytes_per_sample, gcc_unused void *buffer,
|
format_samples_nop(gcc_unused int bytes_per_sample, gcc_unused void *buffer,
|
||||||
gcc_unused uint32_t count)
|
gcc_unused uint32_t count)
|
||||||
{
|
{
|
||||||
/* do nothing */
|
/* do nothing */
|
||||||
@ -171,7 +171,7 @@ wavpack_decode(DecoderClient &client, WavpackContext *wpc, bool can_seek)
|
|||||||
WavpackGetReducedChannels(wpc));
|
WavpackGetReducedChannels(wpc));
|
||||||
|
|
||||||
const format_samples_t format_samples = is_float
|
const format_samples_t format_samples = is_float
|
||||||
? format_samples_float
|
? format_samples_nop
|
||||||
: format_samples_int;
|
: format_samples_int;
|
||||||
|
|
||||||
client.Ready(audio_format, can_seek, GetDuration(wpc));
|
client.Ready(audio_format, can_seek, GetDuration(wpc));
|
||||||
|
Loading…
Reference in New Issue
Block a user