⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 modplay.h

📁 基于lpc2148(arm7)的wav音乐格式播放器的设计
💻 H
字号:
// -*- tab-width: 4 -*-
// MOD Player
// Copyright (c) 2006, K9spud LLC.
// http://www.k9spud.com/traxmod/
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

#ifndef __MODPLAY_H
#define __MODPLAY_H

#include "types.h"
#include "mixer.h"

void playMOD(char* fileName);

typedef struct
{	
	char sName[22];
	euint16 iLength;
	euint8 iFinetune;
	euint8 iVolume;
	euint16 iLoopStart;
	euint16 iLoopLength;
} __attribute((packed)) ModSampleType;

typedef struct
{
	char sName[20];
	ModSampleType Sample[31];
	euint8 iNumOrders;
	euint8 iOrderLoop;
	euint8 iOrder[128];
	char sType[4];	
} __attribute((packed)) ModType;

extern unsigned int fileSDPhysicalAddress;
extern unsigned int iPatternPtr;
extern unsigned char* Pattern;

extern SampleType sample[31];
extern unsigned int iNumPatterns;
extern unsigned int iNumOrders;
extern eint16 iNumChannels;
extern euint8* iOrderTable;
extern eint8* sampleData[2];

#endif // __MODPLAY_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -