Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ESP32-audioI2S
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ESP32-audioI2S
Commits
33788663
Unverified
Commit
33788663
authored
Nov 27, 2021
by
Wolle
Committed by
GitHub
Nov 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix plop sound in polyphaseMono() #231
parent
0a58a846
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/mp3_decoder/mp3_decoder.cpp
src/mp3_decoder/mp3_decoder.cpp
+3
-3
No files found.
src/mp3_decoder/mp3_decoder.cpp
View file @
33788663
...
...
@@ -3,7 +3,7 @@
* libhelix_HMP3DECODER
*
* Created on: 26.10.2018
* Updated on:
12
.11.2021
* Updated on:
27
.11.2021
*/
#include "mp3_decoder.h"
...
...
@@ -3443,7 +3443,7 @@ int IMDCT( int gr, int ch) {
/* all long transforms */
int x=(m_HuffmanInfo->nonZeroBound[ch] + 7) / 18 + 1;
bc.nBlocksLong=(x<32 ? x : 32);
//bc.nBlocksLong =
MIN
((hi->nonZeroBound[ch] + 7) / 18 + 1, 32);
//bc.nBlocksLong =
min
((hi->nonZeroBound[ch] + 7) / 18 + 1, 32);
nBfly = bc.nBlocksLong - 1;
} else if (m_SideInfoSub[gr][ch].blockType == 2 && m_SideInfoSub[gr][ch].mixedBlock) {
/* mixed block - long transforms until cutoff, then short transforms */
...
...
@@ -3749,7 +3749,7 @@ void PolyphaseMono(short *pcm, int *vbuf, const uint32_t *coefBase){
int vLo, vHi, c1, c2;
uint64_t sum1L, sum2L, rndVal;
rndVal = (uint64_t)( 1ULL << ((m_DQ_FRACBITS_OUT - 2 - 2 - 1) - 1 + (32 - m_CSHIFT)) );
rndVal = (uint64_t)( 1ULL << ((m_DQ_FRACBITS_OUT - 2 - 2 - 1
5
) - 1 + (32 - m_CSHIFT)) );
/* special case, output sample 0 */
coef = coefBase;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment