Unable to get AUDIO_U8 format
functions for 2D/3D graphics + realistic driving simulation
Brought to you by:
matei_v
Hello,
I compiled 1.0, by removing the architecture flag in ./comp (I'm on x64)
$ ./comp
In file included from simcar.c:30:
faces.h: In function ‘citfiscom’:
faces.h:256: warning: ‘nto’ may be used uninitialized in this function
Then I tried to play:
$ ./simcar tracks/track1
Set 640x480x16
Unable to get AUDIO_U8 format
I use OSS but have ALSA emulation enabled. what might be the trouble?
Thanks
Try replacing 'desired->format=AUDIO_U8;' at line 93 in file 'simcar.c' with 'desired->format=AUDIO_U16;' or 'desired->format=AUDIO_S8;' and add some corresponding lines in 'game.h' after line 69 ( 'case AUDIO_U8: coef=1;break;' ) , like 'case AUDIO_U16: coef=1;break;' and 'case AUDIO_S8: coef=1;break;' and maybe some other formats specified in SDL documentation.
Neither U16 nor S8 give me different results. I also can't find other formats in the SDL documentation (I don't know where to look) http://www.libsdl.org/cgi/docwiki.cgi/SDL_mixer
Just remove ' printf("Unable to get AUDIO_U8 format\r\n"); ' and especially ' exit(1) ' from line 70 in 'game.h' and replace the line with ' default: coef=1;break; ' . If that doesn't work, probably nothing will ...
Ok, that worked. Thanks!
I also hear sound, a very intense beep that depends on my speed.