Sound "cracks" after one hour

Hi!

When playing wav files with SDL_mixer, the sound is very noisy after playing
about one hour. I only recognized this behaviour with PCI Soundcards, ISA
Soundcards are sounding good :wink:

I don’t think, that this is a SDL problem, but do you have a fix for this
problem? I also encountered this problem with other machines, so I don’t think
this is a specific problem with my setup (I tested it with ESS Solo, ESS 1370,
ESS 1371). Maybe its a ESS problem, but who knows.

Oh, I forgot to tell you my system config: P2, 64MB ram, Linux 2.2, SDL > 1.1.2,
SDL_mixer > 1.1.4, FreeOSS driver included in vanilla kernel sources

Uh oh, I also forgot to tell you, that I’m using a Yamaha YMF744 at home with
the alsa drivers, but the problem comes also after about 1 hour.

Is this a hardware problem or my fault?

Thanks for your supreme libs and your help
Thomas

Hi!

When playing wav files with SDL_mixer, the sound is very noisy after playing
about one hour. I only recognized this behaviour with PCI Soundcards, ISA
Soundcards are sounding good :wink:

It sounds like a timer overflow in the drivers. 32-bit values overflow when
counting microseconds in about 45 minutes.

I don’t think, that this is a SDL problem, but do you have a fix for this
problem?

I’ve never heard of this. You might want to check with the sound driver
authors, and the ALSA development group.

Oh, I forgot to tell you my system config: P2, 64MB ram, Linux 2.2, SDL > 1.1.2,
SDL_mixer > 1.1.4, FreeOSS driver included in vanilla kernel sources

Uh oh, I also forgot to tell you, that I’m using a Yamaha YMF744 at home with
the alsa drivers, but the problem comes also after about 1 hour.

Is this a hardware problem or my fault?

Probably not your fault. :slight_smile:

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software

I don’t think, that this is a SDL problem, but do you have a
fix for this problem?

I’ve never heard of this. You might want to check with the
sound driver authors, and the ALSA development group.

Using ALSA with a “Sound Blaster Live!”, I also experienced all sorts of
"cracks" that sounds like overflow problems, then I switched to the
native emu10k1 driver and now it works perfectly. ALSA uses the emu10k1
driver, so I guess the problem is ALSA…

Marc