[AD] Sound problem!

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


I have some problems with playing *.mod (and *.s3m) files with allegro 3.9.39 and jgmod 0.99 (the latest). I´m using the debug version of jgmod library (Bob told me that there is a msvc release linker bug).
If I used DIGI_AUTODETECT the music is not play correctly (I don´t hear the bass channell).
I use this:
 
bool sound_init()
{
 reserve_voices (16, -1);
 if (install_sound(DIGI_AUTODETECT, MIDI_NONE, NULL)) {
  allegro_message("Error initialising sound system\n%s\n", allegro_error);
  return 1;
 }
 if (install_mod (8) < 0) {
  allegro_message("Error setting digi voices\n");
  return 1;
 }
 set_mod_volume (128);
 song = load_mod("snd/song.s3m");
 if (!song) {
  allegro_message("Error loading snd/song.s3m\n");
  return 1;
 }
 is_sound = true;
 return 0;
}

If I use DIGI_AUTODETECT (it used primary sound device with direct mixing) - debug messages:
- some dlls loaded -
DirectSound interface successfully created.
DirectSound cooperation level set to PRIORITY.
DirectSound caps: 16 bits, stereo, 44100Hz
primary format:
2 channels
44100 Hz
176400 AvgBytesPerSec
4 BlockAlign
16 bits
0 size
create_directsound_buffer() failed (DSERR_INVALIDPARAM).
- 1000 Hz, mono, 8 bits
create_directsound_buffer() failed (DSERR_INVALIDPARAM).
- 1000 Hz, mono, 8 bits
create_directsound_buffer() failed (DSERR_INVALIDPARAM).
- 1000 Hz, mono, 8 bits
create_directsound_buffer() failed (DSERR_INVALIDPARAM).
- 1000 Hz, mono, 8 bits
create_directsound_buffer() failed (DSERR_INVALIDPARAM).
- 1000 Hz, mono, 8 bits
create_directsound_buffer() failed (DSERR_INVALIDPARAM).
- 1000 Hz, mono, 8 bits
create_directsound_buffer() failed (DSERR_INVALIDPARAM).
- 1000 Hz, mono, 8 bits
create_directsound_buffer() failed (DSERR_INVALIDPARAM).
- 1000 Hz, mono, 8 bits

If I use DIGI_DIRECTAMX(0) it is played correctly:
DirectSound interface successfully created
DirectSound cooperation level set to DSSCL_WRITEPRIMARY
DirectSound caps: 16 bits, stereo, 44100Hz
primary format:
2 channels
44100 Hz
176400 AvgBytesPerSec
4 BlockAlign
16 bits
0 size
It looks like Allegro bug probably!
 

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.277 / Virová báze: 146 - datum vydání: 5.9.2001


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/