$ apt install libncurses-dev libvlc-dev
# libncurses-dev is a library and software for terminal handling
# libvlc-dev is a vlc library for handling audio
$ cd terminal-alarm-clock/ && make
Edit alarm_list file, set the time-codes.
for example:
Your audio file name is "MY_FAVORITE_MUSIC", and put it into MY_DIRECTORY
so your file path is
./MY_DIRECTORY/MY_FAVORITE_MUSIC
Edit ./src/audio_player.c
find the function signature called : "alarm_player_routine"
void *alarm_player_routine(void *arg)
modify this line of code from :
m = libvlc_media_new_path(inst, "./alarm_ringtone/ringtone_example");
to :
m = libvlc_media_new_path(inst, "./MY_DIRECTORY/MY_FAVORITE_MUSIC");
then, execute the commands
$ make clean
$ make
$ cd terminal-alarm-clock/ && ./terminal-alarm-clock