File: test.cpp

package info (click to toggle)
pyepl 1.1.0-3.1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,120 kB
  • sloc: cpp: 7,986; python: 6,026; makefile: 360; ansic: 132
file content (29 lines) | stat: -rw-r--r-- 721 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
// PyEPL: hardware/sound/test.cpp
//
// Copyright (C) 2003-2005 Michael J. Kahana
// Authors: Ian Schleifer, Per Sederberg, Aaron Geller, Josh Jacobs
// URL: http://memory.psych.upenn.edu/programming/pyepl
//
// Distributed under the terms of the GNU Lesser General Public License
// (LGPL). See the license.txt that came with this file.

extern "C" void play_wave();
extern "C" void eplSound_wcreate(long,long);
extern "C" void client_code();
extern "C" void eplSound_wdelete();

int main(int argc, char *argv[]){
  if (argc==2){
    int size = 20*2*44100;
    eplSound_wcreate(size,size);
    switch(atoi(argv[1])){
    case 1:
      play_wave();
      break;
    case 2:
      client_code();
      break;
    }
  }
}