[Alsaplayer-devel] alsaplayer problem with short .wav files

Dominique Michel dominique.michel at citycable.ch
Thu Mar 22 07:07:37 GMT 2007


Le Sun, 11 Mar 2007 00:25:51 +0100,
Silvan Calarco <silvan.calarco at mambasoft.it> a écrit :

> Hi all,
> it looks like alsaplayer doesn't correctly play short wav files (< 4092 
> bytes).
> The attached patch solves this problem for me: the call of plugin->play_frame 
> returns with 0 because items_read == 0 but CorePlayer::pcm_worker shouldn't 
> return there because it has to set all previous samples. 
> Maybe there is a better fix for this, I can send the sample wavs if needed.
> 
> Silvan
> 

Hi Silvan,

Sorry for the delay, I was very busy.

I tested you patch on several wav files. I didn't try with a so short but I
see at the sound was not good with a 160044 bytes file and at your patch
ameliorate it.

I also found a bug in the gtk interface and wav files. Without your patch, the
display show an increasing value in the bits field. The value increase non stop
during the playing when it must show the bits per sample value. With your
patch, it show a very big value, I suppose the total number of samples in the
file or something like that. No matter, this have to be investigated further,
and as I see some sound amelioration with your patch, I will commit it later
today.

I would appreciate too if you can provide the sample wav file for further
testing. 

Ciao,
Dominique



More information about the alsaplayer-devel mailing list