shithub: ft²

ref: 295a330c6831453e5b8f4553fe7ee594efd00f32
dir: /src/ft2_module_loader.h/

View raw version
#ifndef _ft2_module_loader_h_
#define _ft2_module_loader_h_

#include <stdint.h>
#include <stdbool.h>
#include "ft2_header.h"
#include "ft2_unicode.h"

bool tmpPatternEmpty(uint16_t pattNum);
void clearUnusedChannels(note_t *p, int16_t numRows, int32_t numChannels);
bool allocateTmpInstr(int16_t insNum);
bool allocateTmpPatt(int32_t pattNum, uint16_t numRows);
void loadMusic(UNICHAR *filenameU);
bool loadMusicUnthreaded(UNICHAR *filenameU, bool autoPlay);
bool handleModuleLoadFromArg(int argc, char **argv);
void loadDroppedFile(char *fullPathUTF8, bool songModifiedCheck);
void handleLoadMusicEvents(void);

// file extensions accepted by Disk Op. in module mode
extern char *supportedModExtensions[];

extern volatile bool tmpLinearPeriodsFlag;
extern int16_t patternNumRowsTmp[MAX_PATTERNS];
extern note_t *patternTmp[MAX_PATTERNS];
extern instr_t *instrTmp[1+256];
extern song_t songTmp;

#endif