File: Sample.C

package info (click to toggle)
gmod 3.1-2
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 1,348 kB
  • ctags: 808
  • sloc: cpp: 7,755; makefile: 82
file content (22 lines) | stat: -rw-r--r-- 461 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
// -*-C++-*-
// This file is part of the gmod package
// Copyright (C) 1997 by Andrew J. Robinson

#ifdef USE_LOCAL
#include "soundcard.h"
#else
#include <sys/soundcard.h>
#endif

#include "Sample.h"

void
Sample::getPatchInfo(struct patch_info &patch) const
{
  patch.mode = mode_;
  patch.len = length_;
  patch.loop_start = loopStart;
  patch.loop_end = loopEnd;
  patch.base_note = baseNote_;  /* set real base note here */
  patch.base_freq = baseFreq_;
}