made interrupt flag volatile

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16846 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen
2006-03-20 19:37:01 +00:00
parent f7c354d7ee
commit b1e7bed203
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ sem_id finished = -1;
BMediaTrack *playTrack;
media_format playFormat;
BSoundPlayer *sp = 0;
bool interrupt = false;
volatile bool interrupt = false;
void
play_buffer(void *cookie, void * buffer, size_t size, const media_raw_audio_format & format)
+1 -1
View File
@@ -26,7 +26,7 @@
#include <getopt.h>
#include <string.h>
bool interrupted = false;
volatile bool interrupted = false;
static void
keyb_int(int)
+2 -2
View File
@@ -17,7 +17,7 @@ thread_id reader = -1;
sem_id finished = -1;
int fd = -1;
BSoundPlayer *sp = 0;
bool interrupt = false;
volatile bool interrupt = false;
void
play_buffer(void *cookie, void * buffer, size_t size, const media_raw_audio_format & format)
@@ -73,7 +73,7 @@ main(int argc, char *argv[])
{
if (argc != 2) {
fprintf(stderr, "Usage:\n %s <filename>\n", argv[0]);
fprintf(stderr, "This program only plays 44.1 kHz 16 bit stereo wav files.");
fprintf(stderr, "This program only plays 44.1 kHz 16 bit stereo wav files.\n");
return 1;
}