Debian Codegraph @

src/smploaders/pt2_load_raw.c

raw symbols SCIP
1 #cxx . . $ `<file>/src/smploaders/pt2_load_raw.c`/include <stdio.h>
2 #include <stdlib.h>
3 #include <stdint.h>
4 #include <stdbool.h>
5 #include "../pt2_header.h"cxx . . $ `<file>/src/pt2_header.h`/
6 #include "../pt2_config.h"cxx . . $ `<file>/src/pt2_config.h`/
7 #include "../pt2_structs.h"cxx . . $ `<file>/src/pt2_structs.h`/
8 #include "../pt2_replayer.h"cxx . . $ `<file>/src/pt2_replayer.h`/
9
10 boolcxx . . $ `<external>/14268322491693841775/stdbool.h:36:9`! loadRAWSamplecxx . . $ loadRAWSample(85a5b89df4a007d2).(FILEcxx . . $ FILE# *f, uint32_tcxx . . $ uint32_t# filesize, moduleSample_tcxx . . $ moduleSample_t# *s)
11 {
12 uint32_tcxx . . $ uint32_t# sampleLength = filesize;
13 if (sampleLength > (uint32_tcxx . . $ uint32_t#)configcxx . . $ config..maxSampleLengthcxx . . $ config_t#maxSampleLength.)
14 sampleLength = configcxx . . $ config..maxSampleLengthcxx . . $ config_t#maxSampleLength.;
15
16 int8_tcxx . . $ int8_t# *smpDataPtr = &songcxx . . $ song.->sampleDatacxx . . $ module_t#sampleData.[s->offsetcxx . . $ moduleSample_t#offset.];
17
18 turnOffVoicescxx . . $ turnOffVoices(49f6e7a06ebc5aa8).();
19 freadcxx . . $ fread(738fc8ac1d711e58).(smpDataPtr, 1, sampleLength, f);
20
21 if (sampleLength & 1)
22 {
23 if (++sampleLength > (uint32_tcxx . . $ uint32_t#)configcxx . . $ config..maxSampleLengthcxx . . $ config_t#maxSampleLength.)
24 sampleLength = configcxx . . $ config..maxSampleLengthcxx . . $ config_t#maxSampleLength.;
25 else
26 smpDataPtr[sampleLength-1] = 0;
27 }
28
29 s->volumecxx . . $ moduleSample_t#volume. = 64;
30 s->fineTunecxx . . $ moduleSample_t#fineTune. = 0;
31 s->lengthcxx . . $ moduleSample_t#length. = sampleLength;
32 s->loopStartcxx . . $ moduleSample_t#loopStart. = 0;
33 s->loopLengthcxx . . $ moduleSample_t#loopLength. = 2;
34
35 return truecxx . . $ `<external>/14268322491693841775/stdbool.h:37:9`!;
36 }