MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / mad_frame_mute

Function mad_frame_mute

modules/data/mp3/libmad/frame.c:485–502  ·  view source on GitHub ↗

* NAME: frame->mute() * DESCRIPTION: zero all subband values so the frame becomes silent */

Source from the content-addressed store, hash-verified

483 * DESCRIPTION: zero all subband values so the frame becomes silent
484 */
485void mad_frame_mute(struct mad_frame *frame)
486{
487 unsigned int s, sb;
488
489 for (s = 0; s < 36; ++s) {
490 for (sb = 0; sb < 32; ++sb) {
491 frame->sbsample[0][s][sb] =
492 frame->sbsample[1][s][sb] = 0;
493 }
494 }
495
496 for (s = 0; s < 18; ++s) {
497 for (sb = 0; sb < 32; ++sb) {
498 frame->overlap[0][sb][s] =
499 frame->overlap[1][sb][s] = 0;
500 }
501 }
502}

Callers 2

mad_frame_initFunction · 0.85
error_defaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected