Skip to content

src/modules/core/transition_mix.c: Increase MAX_CHANNELS to 32#995

Open
Tjoppen wants to merge 1 commit into
mltframework:masterfrom
Tjoppen:max_channels_32
Open

src/modules/core/transition_mix.c: Increase MAX_CHANNELS to 32#995
Tjoppen wants to merge 1 commit into
mltframework:masterfrom
Tjoppen:max_channels_32

Conversation

@Tjoppen

@Tjoppen Tjoppen commented Jun 19, 2024

Copy link
Copy Markdown
Contributor

This matches filter_audiomap.c

Perhaps this should be a project-wide CMake option? Conform them for now.

@bmatherly

Copy link
Copy Markdown
Member

Did you consider an approach to change this service to remove the static definition and dynamically allocate and loop based on the number of actual channels? I wonder how hard that would be to do.

@Tjoppen

Tjoppen commented Jun 20, 2024

Copy link
Copy Markdown
Contributor Author

It probably wouldn't be too hard to do. This is quick and doesn't hurt.

@Tjoppen

Tjoppen commented Jun 20, 2024

Copy link
Copy Markdown
Contributor Author

Oh and to address your comment in the other PR, this one has been tested and is known to work with filter_audiomap.c. Perhaps rather than doing what #996 does, a common API for reporting channel limits could be introduced? That way there's a way to query it.

@ddennedy

Copy link
Copy Markdown
Member

doesn't hurt

It increases memory usage on projects with multiple mix transitions. Using my example from the other PR, the project with 100 mix transitions needs 2.3 GiB RAM just for the mix transitions. Do your requirements permit a lower value such 8 - 16?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants