1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/games/anagramarama/files/patch-src-ag.c
Pav Lucistnik 319b5d5fda Anagramarama - a FREE* word game for Linux, Windows and BeOS.
The aim is to find as many words as possible in the time available. Get the
longest word and you'll advance to the next level.

PR:		ports/83221
Submitted by:	Alejandro Pulver <alejandro@varnet.biz>
2005-07-13 13:59:44 +00:00

29 lines
734 B
C

--- src/ag.c.orig Wed Jul 13 15:52:56 2005
+++ src/ag.c Wed Jul 13 15:54:22 2005
@@ -1723,6 +1723,12 @@
SDL_Surface *screen;
struct sprite* letters = NULL;
//pthread_t audio;
+ // buffer sounds
+ int audio_rate = MIX_DEFAULT_FREQUENCY;
+ Uint16 audio_format = AUDIO_S16;
+ int audio_channels = 1;
+ int audio_buffers = 256;
+
// seed the random generator
srand(time(NULL));
@@ -1742,12 +1748,6 @@
}
SDL_WM_SetCaption("Anagramarama", "ANAGRAMARAMA");
-
- // buffer sounds
- int audio_rate = MIX_DEFAULT_FREQUENCY;
- Uint16 audio_format = AUDIO_S16;
- int audio_channels = 1;
- int audio_buffers = 256;
if(Mix_OpenAudio(audio_rate, audio_format, audio_channels, audio_buffers)){
printf("unable to open audio!\n");