pcm_export: consider the pack24 flag in _source_size()
This commit is contained in:
parent
df1c5ce314
commit
ec93114347
|
@ -148,6 +148,10 @@ pcm_export(struct pcm_export_state *state, const void *data, size_t size,
|
||||||
size_t
|
size_t
|
||||||
pcm_export_source_size(const struct pcm_export_state *state, size_t size)
|
pcm_export_source_size(const struct pcm_export_state *state, size_t size)
|
||||||
{
|
{
|
||||||
|
if (state->pack24)
|
||||||
|
/* 32 bit to 24 bit conversion (4 to 3 bytes) */
|
||||||
|
size = (size / 3) * 4;
|
||||||
|
|
||||||
if (state->dsd_usb)
|
if (state->dsd_usb)
|
||||||
/* DSD over USB doubles the transport size */
|
/* DSD over USB doubles the transport size */
|
||||||
size /= 2;
|
size /= 2;
|
||||||
|
|
Loading…
Reference in New Issue