Last active
August 29, 2015 14:01
-
-
Save itsff/2e92ef320ad9ac600e16 to your computer and use it in GitHub Desktop.
shitty algo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name = my_shitty_so_algo | |
lang = c | |
type = shared | |
c_compiler_flags = -Wno-unused-parameter | |
include_paths = ../algo/ttsdk/include | |
source = main.c | |
/home/filipf/lib$(name).so.gz : lib$(name).so | |
gzip -c $(output_path)/lib/libmy_shitty_so_algo.so > $@ | |
/home/filipf/lib$(name).so.gz.b64 : /home/filipf/lib$(name).so.gz | |
base64 /home/filipf/libmy_shitty_so_algo.so.gz > $@ | |
my_shitty_so_algo : /home/filipf/lib$(name).so.gz.b64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ttsdk/soif.h> | |
#include <stdio.h> | |
enum ttsdk_error_code | |
OnStartAlgo ( | |
struct ttsdk_algo_info* algo_info, | |
ttsdk_env env, | |
struct ttsdk_host_if* host_if, | |
void** user_data | |
) | |
{ | |
printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ANDREW\n"); | |
return ttsdk_error_none; | |
} | |
enum ttsdk_error_code | |
OnUpdateAlgoInfo ( | |
struct ttsdk_algo_info* algo_info, | |
ttsdk_env env, | |
struct ttsdk_host_if* host_if, | |
void* user_data | |
) | |
{ | |
printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~REALLY\n"); | |
return ttsdk_error_none; | |
} | |
enum ttsdk_error_code | |
OnResumeAlgo ( | |
struct ttsdk_algo_info* algo_info, | |
ttsdk_env env, | |
struct ttsdk_host_if* host_if, | |
void* user_data | |
) | |
{ | |
printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~SUCKS\n"); | |
return ttsdk_error_none; | |
} | |
enum ttsdk_error_code | |
OnPauseAlgo ( | |
struct ttsdk_algo_info* algo_info, | |
ttsdk_env env, | |
struct ttsdk_host_if* host_if, | |
void* user_data | |
) | |
{ | |
printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~VERY\n"); | |
return ttsdk_error_none; | |
} | |
void | |
OnStopAlgo ( | |
struct ttsdk_algo_info* algo_info, | |
ttsdk_env env, | |
struct ttsdk_host_if* host_if, | |
void* user_data | |
) | |
{ | |
printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~BIG\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment