Skip to contentSkip to conversation

cp: upmix: code formatting and cleanup, generalize format

alsa-devel GitHub pull_request - opened 1 participant 1 message Nov 20, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

alsa-project/alsa-plugins pull request #2 was opened from bku-sue:

The main purpose of this change is to be able to change the format to e.g. S32 instead of S16 by changing only two lines on the top of the source. So a new symbol UPMIX_PCM_FORMAT is added to hide the actual format, and a special type upmix_sample_t marks the sample type, instead of fixed short.

I fixed the average_copy function as well, which was actually expecting the nchns parameter to be 2, otherwise its local arrays would be overindexed.

The rest is just better naming for i as it denotes the channel index in every case, and applying consistent whitespace.

The behavior of the plugin remains identical though.

Request URL : https://github.com/alsa-project/alsa-plugins/pull/2
Patch URL : https://github.com/alsa-project/alsa-plugins/pull/2.patch
Repository URL: https://github.com/alsa-project/alsa-plugins
_______________________________________________
Alsa-devel mailing list [email protected]
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel