[go: up one dir, main page]

File: fmifstream.cpp

package info (click to toggle)
qliss3d 1.3.2-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 440 kB
  • ctags: 221
  • sloc: sh: 2,761; cpp: 1,297; makefile: 176; ansic: 10
file content (68 lines) | stat: -rw-r--r-- 1,919 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/**************************************************************************
           fmifstream.cpp  -  providing fms-file reading utility
                             -------------------
    begin                : April 10th 2002
    copyright            : (C) 2002-2003 by Daniel Gruen
    email                : daniel_gruen@web.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 is a slim and special fms version for qliss3d
// please use the original version from http://sourceforge.net/projects/fmsynth
// if you want to do anything on it

#include "include/fmplayer.h"

#ifdef FMS_WORKS

#include <cmath>
#include <cstdlib>
#include <cstring>
#include <iostream>

#include <fcntl.h>
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>

#include "include/fmifstream.h"
#include "include/version.h"

using namespace std;

void FMData::init() {
	vtl = new VTL[5];
	vtl[0].setTime(0);
	vtl[0].setValue(128);
	vtl[0].setLinetype(2);

	vtl[1].setTime(100);
	vtl[1].setValue(255);
	vtl[1].setLinetype(3);

	vtl[2].setTime(200);
	vtl[2].setValue(128);
	vtl[2].setLinetype(2);

	vtl[3].setTime(300);
	vtl[3].setValue(0);
	vtl[3].setLinetype(3);

	vtl[4].setTime(400);
	vtl[4].setValue(128);
	vtl[4].setLinetype(0);

	mode = 1;
	vlen = 5;
}

#endif