This GitLab instance reached the end of its service life. It won't be possible to create new users or projects.

Please read the deprecation notice for more information concerning the deprecation timeline

Visit migration.git.tu-berlin.de (internal network only) to import your old projects to the new GitLab platform 📥

Commit cad81f26 by Henrik von Coler

Added missing main.cpp to wav example!

parent 2a99edf2
......@@ -4,7 +4,6 @@ CC = g++
# path(s) to include files
CFLAGS = -I.
# libraries to link
LDFLAGS = -ljack -llo -lsndfile
......@@ -19,6 +18,5 @@ all: wav_example
wav_example: main.o wav_example.o oscman.o singlesample.o
$(CC) -o wav_example main.o wav_example.o oscman.o singlesample.o $(LDFLAGS)
clean:
rm *.o wav_example
/**
* \file main.cpp
*
* \brief Simple example for wav playback.
*
* \author Henrik von Coler
*
* \date $Date: 2019/03/22 $
*
*/
#include"wav_example.h"
using std::cout;
using std::endl;
int main(int argc, char *argv[]){
std::string filename;
for (int i = 1; i < argc; i++)
{
if (i + 1 != argc)
{
if (strcmp(argv[i], "-f") == 0)
{
filename = argv[i + 1];
i++;
}
}
}
/// initial ports from constructor created here.
WavExample * t = new WavExample(filename);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment