Menu

#1 Unable to get AUDIO_U8 format

v1.0 (example)
open
nobody
None
5
2010-01-04
2010-01-04
Anonymous
No

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

Discussion

  • Nobody/Anonymous

    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.

     
  • qubodup

    qubodup - 2010-01-04

    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

     
  • Nobody/Anonymous

    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 ...

     
  • qubodup

    qubodup - 2010-01-04

    Ok, that worked. Thanks!

    I also hear sound, a very intense beep that depends on my speed.

     

Log in to post a comment.