MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / makeRjp1Stream

Function makeRjp1Stream

Source/Amiga/rjp1.cpp:494–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492const int Rjp1::_periodsCount = (sizeof( _periodsTable ) / sizeof( *_periodsTable ));
493
494Rjp1 *makeRjp1Stream(tSharedBuffer songData, tSharedBuffer instrumentsData, int num, int rate, bool stereo) {
495 Rjp1 *stream = new Rjp1(rate, stereo);
496 if (stream->load(songData, instrumentsData)) {
497 if (num < 0) {
498 stream->startPattern(3, -num);
499 } else {
500 stream->startSong(num);
501 }
502 return stream;
503 }
504 delete stream;
505 return 0;
506}
507
508} // End of namespace Audio

Callers 2

Sound_PlayMethod · 0.85
Music_PlayMethod · 0.85

Calls 3

startPatternMethod · 0.80
startSongMethod · 0.80
loadMethod · 0.45

Tested by

no test coverage detected