#ifdef HAVE_OSS_AUDIO
slScheduler audio_sched ( 8000 ) ;
smMixer audio_mixer ;
-slSample s1;
-slSample s2;
+slSample *s1;
+slSample *s2;
#endif
strcpy(slfile, path);
strcat(slfile, "prpidle.wav");
- // s1 . loadFile ( slfile );
- s1 . loadFile ( slfile );
+ s1 = new slSample ( slfile );
printf("Rate = %d Bps = %d Stereo = %d\n",
- s1.getRate(), s1.getBps(), s1.getStereo());
- audio_sched . playSample ( &s1 );
-
- strcpy(slfile, path);
- strcat(slfile, "thunder.wav");
- // s2 . loadFile ( slfile );
- // s2 . adjustVolume(0.5);
- // audio_sched . playSample ( &s2 );
+ s1 -> getRate(), s1 -> getBps(), s1 -> getStereo());
+ audio_sched . playSample ( s1 );
+
+ // strcpy(slfile, path);
+ // strcat(slfile, "thunder.wav");
+ // s2 -> loadFile ( slfile );
+ // s2 -> adjustVolume(0.5);
+ // audio_sched -> playSample ( s2 );
#endif
// pass control off to the master GLUT event handler
}
-#ifdef __SUNPRO_CC
-extern "C" {
- void __eprintf( void ) {
- }
-}
-#endif
-
-
// $Log$
+// Revision 1.22 1998/06/05 18:18:40 curt
+// A bit of fiddling with audio ...
+//
// Revision 1.21 1998/06/03 22:01:06 curt
// Tweaking sound library usage.
//
if HAVE_OSS_AUDIO
-AUDIO_DEFS = -DHAVE_OSS_AUDIO
+DEFS += -DHAVE_OSS_AUDIO
AUDIO_LIBS = $(top_builddir)/Lib/Audio/libAudio.la
-else
-AUDIO_DEFS =
-AUDIO_LIBS =
endif
EXTRA_DIST = runfg.in runfg.bat.in
$(top_builddir)/Lib/Debug/libDebug.la \
$(top_builddir)/Lib/zlib/libz.la
-DEFS += $(AUDIO_DEFS)
-
INCLUDES += \
-I$(top_builddir) \
-I$(top_builddir)/Lib \