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

Function mad_stream_init

modules/data/mp3/libmad/stream.c:38–59  ·  view source on GitHub ↗

* NAME: stream->init() * DESCRIPTION: initialize stream struct */

Source from the content-addressed store, hash-verified

36 * DESCRIPTION: initialize stream struct
37 */
38void mad_stream_init(struct mad_stream *stream)
39{
40stack(__FUNCTION__, __FILE__, __LINE__);
41 stream->buffer = 0;
42 stream->bufend = 0;
43 stream->skiplen = 0;
44
45 stream->sync = 0;
46 stream->freerate = 0;
47
48 stream->this_frame = 0;
49 stream->next_frame = 0;
50 mad_bit_init(&stream->ptr, 0);
51
52 mad_bit_init(&stream->anc_ptr, 0);
53 stream->anc_bitlen = 0;
54
55 stream->md_len = 0;
56
57 stream->options = 0;
58 stream->error = MAD_ERROR_NONE;
59}
60
61/*
62 * NAME: stream->finish()

Callers 2

xs_mp3Function · 0.85
run_syncFunction · 0.85

Calls 1

mad_bit_initFunction · 0.85

Tested by

no test coverage detected