FastLED 3.10.6
Loading...
Searching...
No Matches

◆ mp3d_synth_granule()

static void mp3d_synth_granule ( int32_t * qmf_state,
int32_t * grbuf,
int nbands,
int nch,
mp3d_sample_t * pcm )
static

Definition at line 940 of file minimp3_synth_fixed.h.

942{
943 int i;
944 int32_t *lins = qmf_state;
945 for (i = 0; i < nch; i++)
946 {
947 mp3d_DCT_II(grbuf + 576*i, nbands);
948 MP3D_STAGE(MINIMP3_STAGE_DCT2, i, grbuf + 576*i, 18*nbands);
949 }
950
951 for (i = 0; i < nbands; i += 2)
952 {
953 mp3d_synth(grbuf + i, pcm + 32*nch*i, nch, lins + i*64);
954 }
955#ifndef MINIMP3_NONSTANDARD_BUT_LOGICAL
956 if (nch == 1)
957 {
958 for (i = 0; i < 15*64; i += 2)
959 {
960 qmf_state[i] = lins[nbands*64 + i];
961 }
962 } else
963#endif /* MINIMP3_NONSTANDARD_BUT_LOGICAL */
964 {
965 memmove(qmf_state, lins + nbands*64, sizeof(int32_t)*15*64);
966 }
967}
#define MINIMP3_STAGE_DCT2
Definition minimp3.h:170
static MP3D_KERNEL void mp3d_DCT_II(int32_t *grbuf, int n) FL_NO_EXCEPT
MP3D_HOT void mp3d_synth(int32_t *xl, mp3d_sample_t *dstl, int nch, int32_t *lins) FL_NO_EXCEPT
void * memmove(void *dest, const void *src, size_t n) FL_NO_EXCEPT
fl::i32 int32_t
Definition stdint.h:219

References FL_NO_EXCEPT, MINIMP3_STAGE_DCT2, mp3d_DCT_II(), and mp3d_synth().

+ Here is the call graph for this function: