blob: a16f22a4663f5e79f141acf9f5c365dbdce96f3f (
plain)
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
|
.__ .__.__ .__
_____ _____ ___ __|__| _____ |__| | |__|____ ____
/ \\__ \ \ \/ / |/ \| | | | \__ \ / \
| Y Y \/ __ \_> <| | Y Y \ | |_| |/ __ \| | \
|__|_| (____ /__/\_ \__|__|_| /__|____/__(____ /___| /
\/ \/ \/ \/ \/ \/
:::::::::::::::::::::::::::BASIC EXAMPLES
You can choose between using RTAudio and PortAudio drivers in player.h by uncommenting the appropriate line. To use PortAudio, you will need to compile the portAudio library from http://http://www.portaudio.com/ and link it with your executable.
Examples demonstrating different features can be found in the maximilian_examples folder. To try them, replace the contents of main.cpp with the contents of a tutorial file and compile.
:::MAC OSX XCODE PROJECT
You can run the examples using the 'maximilianTest' XCode 3 project provided.
:::COMMAND LINE COMPILATION IN MACOSX
> g++ -Wall -D__MACOSX_CORE__ -o maximilian main.cpp RtAudio.cpp player.cpp maximilian.cpp -framework CoreAudio -lpthread
> ./maximilian
::COMMAND LINE COMPILATION IN LINUX
With OSS:
> g++ -Wall -D__LINUX_OSS__ -o maximilian main.cpp RtAudio.cpp player.cpp maximilian.cpp -lpthread
With ALSA:
> g++ -Wall -D__LINUX_ALSA__ -o maximilian main.cpp RtAudio.cpp player.cpp maximilian.cpp -lasound -lpthread
With Jack:
> g++ -Wall -D__UNIX_JACK__ -o maximilian main.cpp RtAudio.cpp player.cpp maximilian.cpp `pkg-config --cflags --libs jack` -lpthread
then:
> ./maximilian
|