You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
This commit is contained in:
@@ -47,31 +47,29 @@ midi.
|
||||
|
||||
class AuxSampleData; //used for internal crap
|
||||
|
||||
class CPLoader_IT : public CPLoader {
|
||||
|
||||
|
||||
class CPLoader_IT : public CPLoader {
|
||||
|
||||
CPFileAccessWrapper *file;
|
||||
CPSong *song;
|
||||
|
||||
struct IT_Header {
|
||||
uint8_t blank01[2];
|
||||
uint16_t ordnum;
|
||||
uint16_t insnum;
|
||||
uint16_t smpnum;
|
||||
uint16_t patnum;
|
||||
uint16_t cwt; /* Created with tracker (y.xx = 0x0yxx) */
|
||||
uint16_t cmwt; /* Compatible with tracker ver > than val. */
|
||||
uint16_t flags;
|
||||
uint16_t special; /* bit 0 set = song message attached */
|
||||
uint16_t msglength;
|
||||
uint32_t msgoffset;
|
||||
uint8_t blank01[2];
|
||||
uint16_t ordnum;
|
||||
uint16_t insnum;
|
||||
uint16_t smpnum;
|
||||
uint16_t patnum;
|
||||
uint16_t cwt; /* Created with tracker (y.xx = 0x0yxx) */
|
||||
uint16_t cmwt; /* Compatible with tracker ver > than val. */
|
||||
uint16_t flags;
|
||||
uint16_t special; /* bit 0 set = song message attached */
|
||||
uint16_t msglength;
|
||||
uint32_t msgoffset;
|
||||
bool is_chibi;
|
||||
};
|
||||
};
|
||||
|
||||
/* Variables to store temp data */
|
||||
IT_Header header;
|
||||
|
||||
|
||||
/* CPSong Info Methods */
|
||||
Error load_header(bool p_dont_set);
|
||||
Error load_orders();
|
||||
@@ -79,47 +77,41 @@ class CPLoader_IT : public CPLoader {
|
||||
|
||||
/* CPPattern Methods */
|
||||
Error load_patterns();
|
||||
|
||||
|
||||
/* CPSample Methods */
|
||||
|
||||
|
||||
Error load_samples();
|
||||
Error load_sample(CPSample *p_sample);
|
||||
CPSample_ID load_sample_data(AuxSampleData& p_sample_data);
|
||||
CPSample_ID load_sample_data(AuxSampleData &p_sample_data);
|
||||
|
||||
// CPSample decompression
|
||||
|
||||
|
||||
uint32_t read_n_bits_from_IT_compressed_block(uint8_t p_bits_to_read);
|
||||
bool read_IT_compressed_block (bool p_16bits);
|
||||
void free_IT_compressed_block ();
|
||||
bool load_sample_8bits_IT_compressed(void *p_dest_buffer,int p_buffsize);
|
||||
bool load_sample_16bits_IT_compressed(void *p_dest_buffer,int p_buffsize);
|
||||
uint32_t *source_buffer; /* source buffer */
|
||||
uint32_t *source_position; /* actual reading position */
|
||||
bool read_IT_compressed_block(bool p_16bits);
|
||||
void free_IT_compressed_block();
|
||||
bool load_sample_8bits_IT_compressed(void *p_dest_buffer, int p_buffsize);
|
||||
bool load_sample_16bits_IT_compressed(void *p_dest_buffer, int p_buffsize);
|
||||
uint32_t *source_buffer; /* source buffer */
|
||||
uint32_t *source_position; /* actual reading position */
|
||||
uint8_t source_remaining_bits; /* bits remaining in read dword */
|
||||
uint8_t* pat_data;
|
||||
|
||||
/* CPInstruments Methods */
|
||||
uint8_t *pat_data;
|
||||
|
||||
/* CPInstruments Methods */
|
||||
Error load_effects();
|
||||
Error load_instruments();
|
||||
Error load_instrument(CPInstrument *p_instrument,int *p_samples=0);
|
||||
void load_envelope(CPEnvelope *p_envelope,bool*p_has_filter_flag=0);
|
||||
|
||||
Error load_instrument(CPInstrument *p_instrument, int *p_samples = 0);
|
||||
void load_envelope(CPEnvelope *p_envelope, bool *p_has_filter_flag = 0);
|
||||
|
||||
public:
|
||||
|
||||
|
||||
bool can_load_song();
|
||||
bool can_load_sample();
|
||||
bool can_load_instrument();
|
||||
|
||||
Error load_song(const char *p_file,CPSong *p_song, bool p_sampleset=false);
|
||||
Error load_sample(const char *p_file,CPSample *p_sample);
|
||||
Error load_instrument(const char *p_file,CPSong *p_song,int p_instr_idx);
|
||||
|
||||
Error load_song(const char *p_file, CPSong *p_song, bool p_sampleset = false);
|
||||
Error load_sample(const char *p_file, CPSample *p_sample);
|
||||
Error load_instrument(const char *p_file, CPSong *p_song, int p_instr_idx);
|
||||
|
||||
CPLoader_IT(CPFileAccessWrapper *p_file);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user