MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / get_numseq

Function get_numseq

src/Engine/Adlib/adlplayer.cpp:506–516  ·  view source on GitHub ↗

reads running-length value from data stream

Source from the content-addressed store, hash-verified

504
505//reads running-length value from data stream
506int get_numseq(unsigned char** mus_ptr)
507{
508 unsigned char c;
509 int v=0;
510 do {
511 c = *(*(unsigned char**)mus_ptr);
512 v = (v<<7) + (c & 0x7f);
513 (*((unsigned char**)mus_ptr))++;
514 } while (c&0x80);
515 return v;
516}
517
518//MAIN FUNCTION - instantly stops music
519void func_mute()

Callers 2

decode_opFunction · 0.85
init_musicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected