X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fopenal%2Fsound.c;h=8d0b342c4ff656dee368401530f64946d9e4d98a;hb=6e1b30ae9e47ce56352acb5911c961acf2f8b9f5;hp=ef9afdab2b09c6d8fb26bda6d4f74b09947f55c0;hpb=4a99fe51561ca331df54512eb25c502d0fcd2b55;p=flatwaifu.git diff --git a/src/openal/sound.c b/src/openal/sound.c index ef9afda..8d0b342 100644 --- a/src/openal/sound.c +++ b/src/openal/sound.c @@ -1,3 +1,18 @@ +/* Copyright (C) 2020 SovietPony + * + * 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, version 3 of the License ONLY. + * + * 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. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + #include "sound.h" #include "music.h" @@ -95,7 +110,7 @@ void MUS_update (void) { /* Sound */ -static int sound_menu_handler (menu_msg_t *msg, const menu_t *m, void *data, int i) { +static int sound_menu_handler (menu_msg_t *msg, const menu_t *m, int i) { static int cur; enum { VOLUME, __NUM__ }; static const simple_menu_t sm = { @@ -115,9 +130,7 @@ static int sound_menu_handler (menu_msg_t *msg, const menu_t *m, void *data, int } const menu_t *S_menu (void) { - static const menu_t m = { - NULL, &sound_menu_handler - }; + static const menu_t m = { &sound_menu_handler }; return &m; }