> august wrote:
> 
> >> for(i = 0; i < out_format->num_channels; i++)
> >>    {
> >>    for(j = 0; j < in_format->num_channels; j++)
> >>      {
> >>      matrix[i][j] = (i == j) ? 1.0 : 0.0;
> >>      }
> >>    }
> >>
> >> If I didn't make a mistake, this should cover the cases you describe.
> > 
> > This looks correct to me and looks like the best way of handling a
> > default configuration.   It is especially useful if you can assign the
> > mix matrix like you suggested  before.
> 
> Ok, that's done for the case, that the predefined mixer initialization
> fails and no user matrix is given.


wow, that was fast.


> There are now 2 new functions:
> 
> void gavl_audio_options_set_mix_matrix(gavl_audio_options_t * opt,
>                                         const double ** matrix);
> 
> const double ** gavl_audio_options_get_mix_matrix(gavl_audio_options_t * opt);
> 
> and a new audio conversion flag (on by default):
> 
> GAVL_AUDIO_NORMALIZE_MIX_MATRIX
> 
> For initializing the mix matrix there are 3 possibilities:
> 
> 1. User defined matrix (optionally with normalization)
> 2. Prefefined up-/downmixing (like before)
> 3. Fallback (unity matrix).

        
sweet!  
        
> Of course I know, that for *prosessional* applications, these end-user
> stuff is irrelevant, and that's why we are discussing how to make it better.

cool.  I also understand that 99.9% of users will want stereo or 5.1


> One can rename GAVL_CHID_AUX to GAVL_CHID_GENERIC if that helps.

AUX is fine.      


> Interleaving shouldn't matter here.
> If you still get segfaults with current CVS, we must investigate this.

nope....I will do some more testing, but the current CVS fixes
everything it seems.


thanks!  -august.


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Gmerlin-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gmerlin-general

Reply via email to