[ lame-Bugs-1205905 ] -Z switch has no effect

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ lame-Bugs-1205905 ] -Z switch has no effect

SourceForge.net
Bugs item #1205905, was opened at 2005-05-20 15:36
Message generated for change (Comment added) made by pa3pyx
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100290&aid=1205905&group_id=290

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Pa3PyX (pa3pyx)
Assigned to: Nobody/Anonymous (nobody)
Summary: -Z switch has no effect

Initial Comment:
Since 3.96 (and up to 3.97.10), the code doesn't do
anything with the -Z switch. The following code will make
it consistent with the documentation (-Z enables sbgain
and scalefac-scale, -Z(int), if int is negative, enables
scalefac-scale only, and enables both if int is >= 0).

set_get.c:

int
lame_set_experimentalZ( lame_global_flags*  gfp,
                        int                 experimentalZ )
{
    if (experimentalZ <= 0) {
        lame_set_subblock_gain(gfp, 0);
    }
    else {
        lame_set_subblock_gain(gfp, experimentalZ);
    }
    lame_set_sfscale(gfp, 1);
   
    return 0;
}

int
lame_get_experimentalZ( const lame_global_flags*  gfp )
{
    return lame_get_sfscale(gfp);
}


----------------------------------------------------------------------

>Comment By: Pa3PyX (pa3pyx)
Date: 2005-05-20 15:37

Message:
Logged In: YES
user_id=499949

Oops... I meant if int > 0.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100290&aid=1205905&group_id=290


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Lame-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/lame-dev