Andrew and all,
Here an example because I think it was right as before.
In the screencast I am using a video file by Pierre ( http://www.gvgdevelopers.com/K2DevGuide/Clips2/NTSC_SD_DV25_colorbar.avi ) to show what I said. The source video "NTSC_SD_DV25_colorbar.avi" has 8 audio stereo channels. So, with your change, Cinelerra-GG will create 16 audio channels instead of 6, because MAXCHANNELS=32. IMHO, I think it would be too much.
You can confirm or less if that code is for that feature.
Screencast to https://streamable.com/woem2b
Thanks!

IgorBeg

Il 19/11/2020 03:07, Andrew Randrianasulu via Cin ha scritto:
so I used it for max number of channels for auto-created project (was just 6):

diff --git a/cinelerra-5.1/cinelerra/mwindow.C 
b/cinelerra-5.1/cinelerra/mwindow.C
index f245018a..690c7ef8 100644
--- a/cinelerra-5.1/cinelerra/mwindow.C
+++ b/cinelerra-5.1/cinelerra/mwindow.C
@@ -5088,7 +5107,7 @@ int MWindow::select_asset(Asset *asset, int vstream, int 
astream, int delete_tra
                 int channels = 0;
                 for( uint64_t mask=channel_mask; mask!=0; mask>>=1 ) channels += 
mask&  1;
                 if( channels<  1 ) channels = 1;
-               if( channels>  6 ) channels = 6;
+               if( channels>  MAXCHANNELS ) channels = MAXCHANNELS;
                 session->audio_tracks = session->audio_channels = channels;

                 int *achannel_positions = 
preferences->channel_positions[session->audio_channels-1];

=====



--
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to