File: xm.h

package info (click to toggle)
gmod 3.1-8.3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,340 kB
  • ctags: 808
  • sloc: cpp: 7,764; makefile: 76
file content (34 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (7)
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
// -*-C++-*-
// This file is part of the gmod package
// Copyright (C) 1997 by Andrew J. Robinson

#ifndef xmH
#define xmH

#include "Sample.h"
#include "Envelope.h"

class XM_sample : public Sample
{
public:
  int load(Sequencer &, FILE *, int, int, void *, void *);
  int volumeEnvelopeY(int &a, char c, unsigned short *b) const
  { return volumeEnvelope.getY(a, c, b); }
  int panEnvelopeY(int &a, char c) const { return panEnvelope.getY(a, c); }
  void decode(char *) const;
  int pan() const { return panning_; }
  int vibratoDepth() const { return vibratoDepth_; }
  int vibratoRate() const { return vibratoRate_; }
  int vibratoType() const { return vibratoType_; }

private:
  Envelope volumeEnvelope;
  Envelope panEnvelope;
  unsigned char panning_;
  unsigned char vibratoType_;
  //unsigned char vibratoSweep_;
  unsigned char vibratoDepth_;
  unsigned char vibratoRate_;
};

#endif