X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fsounds.c;fp=src%2Fsounds.c;h=0000000000000000000000000000000000000000;hb=1adeebe9572cc4441d114687606e45cde11f5b2b;hp=c1b4301a3c1da4e15e20448078db10c6f9f2a4df;hpb=860de21ec6c253290ab3fc213cb11f350b193d05;p=mancala diff --git a/src/sounds.c b/src/sounds.c deleted file mode 100644 index c1b4301..0000000 --- a/src/sounds.c +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Sounds Routines -- sounds.c - * - * Copyright (C) 2009 Reto Zingg - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2, or (at your option) any - * later version. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details, a copy of which may be found in - * the file COPYING provided in the main directory of this release. - * - */ - -#include -#include "SDL.h" -#include "SDL_mixer.h" - -int play_sound(Mix_Chunk *chunk){ - //Play the scratch effect - if( Mix_PlayChannel( -1, chunk, 0 ) == -1 ) - { - fprintf(stderr, "Unable to load sound: %s\n", - SDL_GetError()); - exit(1); - } - else{ - return 0; - } -}