roc: use native float samples

This commit is contained in:
Wim Taymans 2022-06-23 12:48:59 +02:00
parent 60cbc44526
commit df457e99b2
2 changed files with 2 additions and 2 deletions

View file

@ -316,7 +316,7 @@ static int roc_sink_setup(struct module_roc_sink_data *data)
/* Fixed to be the same as ROC sender config above */
info.rate = 44100;
info.channels = 2;
info.format = SPA_AUDIO_FORMAT_F32_LE;
info.format = SPA_AUDIO_FORMAT_F32;
info.position[0] = SPA_AUDIO_CHANNEL_FL;
info.position[1] = SPA_AUDIO_CHANNEL_FR;

View file

@ -337,7 +337,7 @@ static int roc_source_setup(struct module_roc_source_data *data)
/* Fixed to be the same as ROC receiver config above */
info.rate = 44100;
info.channels = 2;
info.format = SPA_AUDIO_FORMAT_F32_LE;
info.format = SPA_AUDIO_FORMAT_F32;
info.position[0] = SPA_AUDIO_CHANNEL_FL;
info.position[1] = SPA_AUDIO_CHANNEL_FR;
data->stride = info.channels * sizeof(float);