• R/O
  • HTTP
  • SSH
  • HTTPS

timidity41: Commit


Commit MetaInfo

Revisãof1f315b890155478d4cf4fdbfa6ccfe5a34df26e (tree)
Hora2020-08-02 18:26:47
AutorStarg <starg@user...>
CommiterStarg

Mensagem de Log

Merge branch 'dev41' into unicode

Mudança Sumário

Diff

--- a/timidity/resample.c
+++ b/timidity/resample.c
@@ -4616,7 +4616,7 @@ static void lo_rs_plain(Voice *vp, DATA_T *dest, int32 count)
46164616 int32 i = 0, j;
46174617
46184618 if (resrc->increment < 0) resrc->increment = -resrc->increment; /* In case we're coming out of a bidir loop */
4619- j = PRECALC_LOOP_COUNT(resrc->offset, resrc->data_length, resrc->increment) + 2; // safe end+128 sample
4619+ j = PRECALC_LOOP_COUNT(resrc->offset, resrc->data_length, resrc->increment) - 2; // safe end+128 sample
46204620 if (j > count) {j = count;}
46214621 else if(j < 0) {j = 0;}
46224622 dest = resample_linear_multi(vp, dest, j, &i);
@@ -4804,7 +4804,7 @@ static void lo_rs_plain_float(Voice *vp, DATA_T *dest, int32 count)
48044804 int32 i = 0, j;
48054805
48064806 if (resrc->increment < 0) resrc->increment = -resrc->increment; /* In case we're coming out of a bidir loop */
4807- j = PRECALC_LOOP_COUNT(resrc->offset, resrc->data_length, resrc->increment) + 2; // safe end+128 sample
4807+ j = PRECALC_LOOP_COUNT(resrc->offset, resrc->data_length, resrc->increment) - 2; // safe end+128 sample
48084808 if (j > count) {j = count;}
48094809 else if(j < 0) {j = 0;}
48104810 dest = resample_linear_float_multi(vp, dest, j, &i);
@@ -5683,7 +5683,7 @@ static void lao_rs_plain(Voice *vp, DATA_T *dest, int32 count)
56835683 int32 i = 0, j = 0;
56845684
56855685 if (resrc->increment < 0) resrc->increment = -resrc->increment; /* In case we're coming out of a bidir loop */
5686- j = PRECALC_LOOP_COUNT(resrc->offset, resrc->data_length, resrc->increment) + 4; // safe end+128 sample
5686+ j = PRECALC_LOOP_COUNT(resrc->offset, resrc->data_length, resrc->increment) - 4; // safe end+128 sample
56875687 if (j > count) {j = count;}
56885688 else if(j < 0) {j = 0;}
56895689 if((resrc->offset >> FRACTION_BITS) >= 1)
@@ -6070,7 +6070,7 @@ static void lao_rs_plain_float(Voice *vp, DATA_T *dest, int32 count)
60706070 int32 i = 0, j = 0;
60716071
60726072 if (resrc->increment < 0) resrc->increment = -resrc->increment; /* In case we're coming out of a bidir loop */
6073- j = PRECALC_LOOP_COUNT(resrc->offset, resrc->data_length, resrc->increment) + 4; // safe end+128 sample
6073+ j = PRECALC_LOOP_COUNT(resrc->offset, resrc->data_length, resrc->increment) - 4; // safe end+128 sample
60746074 if (j > count) {j = count;}
60756075 else if(j < 0) {j = 0;}
60766076 if((resrc->offset >> FRACTION_BITS) >= 1)
Show on old repository browser