~ubuntu-branches/ubuntu/maverick/crossfire-client/maverick

« back to all changes in this revision

Viewing changes to gtk-v2/src/sound.c

  • Committer: Bazaar Package Importer
  • Author(s): Kari Pahula
  • Date: 2007-04-13 21:15:44 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070413211544-vjo6zesj6g0wgmwf
Tags: 1.10.0-1
* New upstream release
* Install the README, README-dev and TODO files specific to the GTK2
  client to the corresponding package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
char *rcsid_gtk2_sound_c =
2
 
    "$Id: sound.c,v 1.2 2006/02/16 22:32:46 akirschbaum Exp $";
 
2
    "$Id: sound.c 5010 2006-10-07 18:29:47Z qal21 $";
3
3
 
4
4
/*
5
5
    CrossFire, A Multiplayer game for X-windows
54
54
 * function will likely disable sound support/requests from the server.
55
55
 */
56
56
 
57
 
#ifndef WIN32
58
57
int init_sounds(void)
59
58
{
 
59
#ifndef WIN32
60
60
    char sound_path[MAX_BUF];
61
61
 
62
62
    /* Easy trick - global nosound is set in the arg processing - if set,
94
94
    sound_pipe=fdopen(sound_process->tube[0],"w");
95
95
    signal(SIGPIPE, signal_pipe);/*perhaps throwing this out :\*/
96
96
    return 0;
 
97
#else
 
98
    return -1;
 
99
#endif
97
100
}
98
 
#endif
99
101
 
100
102
 
101
103
/* Plays sound 'soundnum'.  soundtype is 0 for normal sounds, 1 for
124
126
}
125
127
 
126
128
 
127
 
#ifndef WIN32
128
129
void SoundCmd(unsigned char *data,  int len)
129
130
{
 
131
#ifndef WIN32
130
132
    int x, y, num, type;
131
133
 
132
134
    if (len!=5) {
143
145
            num, type, x ,y);
144
146
#endif
145
147
    play_sound(num, type, x, y);
 
148
#endif
146
149
}
147
 
#endif