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

Function xs_mp3

modules/data/mp3/mp3.c:52–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void xs_mp3(xsMachine *the)
53{
54 xsMP3 mp3;
55
56 mp3 = c_calloc(1, sizeof(xsMP3Record));
57 if (!mp3) xsUnknownError("no memory");
58
59 xsmcSetHostData(xsThis, mp3);
60
61 mad_stream_init(&mp3->stream);
62 mad_frame_init(&mp3->frame);
63 mad_synth_init(&mp3->synth);
64}
65
66void xs_mp3_close(xsMachine *the)
67{

Callers

nothing calls this directly

Calls 3

mad_stream_initFunction · 0.85
mad_frame_initFunction · 0.85
mad_synth_initFunction · 0.85

Tested by

no test coverage detected