|
@@ -301,13 +301,13 @@ int main(int argc, char* argv[])
|
301
|
301
|
{
|
302
|
302
|
snd.init();
|
303
|
303
|
printf("Loading %s\n", argv[1]);
|
304
|
|
- ret = snd.addFile(argv[1], &id, SoundFlagsNone);
|
|
304
|
+ ret = snd.addFile(argv[1], &id, snd.SoundFlagsNone);
|
305
|
305
|
printf("Load returned %i\n", ret);
|
306
|
306
|
printf("Playing %u::%s\n", id, argv[1]);
|
307
|
307
|
snd.play(id);
|
308
|
308
|
|
309
|
309
|
printf("Waiting...\n");
|
310
|
|
- sleep(5);
|
|
310
|
+ sleep(1);
|
311
|
311
|
|
312
|
312
|
f = fopen(argv[1], "rb");
|
313
|
313
|
|
|
@@ -323,14 +323,14 @@ int main(int argc, char* argv[])
|
323
|
323
|
fclose(f);
|
324
|
324
|
|
325
|
325
|
printf("Loading buffer of %s\n", argv[1]);
|
326
|
|
- ret = snd.addFile(buf, &id, SoundFlagsNone);
|
|
326
|
+ ret = snd.addWave(buf, &id, snd.SoundFlagsNone);
|
327
|
327
|
printf("Load returned %i\n", ret);
|
328
|
328
|
printf("Playing buffer of %u::%s\n", id, argv[1]);
|
329
|
329
|
snd.play(id);
|
330
|
330
|
|
331
|
331
|
delete [] buf;
|
332
|
332
|
printf("Waiting...\n");
|
333
|
|
- sleep(5);
|
|
333
|
+ sleep(1);
|
334
|
334
|
}
|
335
|
335
|
}
|
336
|
336
|
else
|