diff options
author | Thomas White <taw27@cam.ac.uk> | 2008-11-24 00:58:50 +0000 |
---|---|---|
committer | Thomas White <taw27@cam.ac.uk> | 2008-11-24 00:58:50 +0000 |
commit | f058b688c203cfa0cc595ee9d76b400b5ad21eca (patch) | |
tree | fc352e00cb78e947dae668d66e386a1457117af8 /src/main.c | |
parent | a2090150615b96e040324d471c6fd0bd53360eb8 (diff) |
Small audio fixes
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -31,6 +31,7 @@ #include <stdarg.h> #include <stdio.h> #include <glib.h> +#include <SDL.h> #include "types.h" #include "mainwindow.h" @@ -43,6 +44,12 @@ int main(int argc, char *argv[]) { gtk_init(&argc, &argv); g_thread_init(NULL); + if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) { + fprintf(stderr, "Couldn't initialise SDL: %s\n", SDL_GetError()); + return 1; + } + atexit(SDL_Quit); + /* Start the accelerometer thread */ accelerometer_start(); |