Files
Pi2ezoPlayer/main.c
2016-09-11 13:57:07 +02:00

25 lines
501 B
C

#include <stdio.h>
#include <stdlib.h>
#include "player.h"
#include "song.h"
void shutdown(void) {
//Diese Methode wird von beim beenden aufgerufen.
printf("Auf Wiedersehen!\n");
}
int main(void) {
atexit(shutdown);
if (setupSoftTone() != 0) {
printf("SoftTone konnte nicht initialisiert werden.\n");
exit(0);
}
//Intro
play(intro, noteDurations, introlength);
//Main theme
play(melody, melodyNoteDurations, songlength);
return 0;
}