src/sound.cpp
changeset 9390 88d36f907e96
parent 9111 48ce04029fe4
child 9542 bc9789270025
equal deleted inserted replaced
9389:b547cd1aaac2 9390:88d36f907e96
    27 static void OpenBankFile(const char *filename)
    27 static void OpenBankFile(const char *filename)
    28 {
    28 {
    29 	uint i;
    29 	uint i;
    30 
    30 
    31 	FioOpenFile(SOUND_SLOT, filename);
    31 	FioOpenFile(SOUND_SLOT, filename);
    32 	uint pos = FioGetPos();
    32 	size_t pos = FioGetPos();
    33 	uint count = FioReadDword() / 8;
    33 	uint count = FioReadDword() / 8;
    34 
    34 
    35 	/* Simple check for the correct number of original sounds. */
    35 	/* Simple check for the correct number of original sounds. */
    36 	if (count != 73) {
    36 	if (count != 73) {
    37 		DEBUG(misc, 6, "Incorrect number of sounds in '%s', ignoring.", filename);
    37 		DEBUG(misc, 6, "Incorrect number of sounds in '%s', ignoring.", filename);