You are not logged in.

#1 11-27-2011 13:37:25

LeFritz
Nouveau membre
Registered: 11-27-2011
Posts: 4

Error in SDLAudioCallback

Hi

Audio doesn't work for me.
I've got following error message on the console:

Error in SDLAudioCallback : Wanted len( 4096 )<>MixedMusic.SoundPacketSize( 3840 )

I've tried several 1.0 and 1.1 deb packages on kubuntu 11.10 amd64. Tried a rpm package and built 1.1 by myself. Always I've got the error.

As a result the rendered video has no audio either.

All needed packages are installed, except the sdl-pulseaudio package which is a dependency in the ubuntu package from the download page.
Is pulseaudio a must? If not could the dependency be removed? Not everyone uses pulseaudio and sdl don't need it.

System:
kubuntu 11.10 amd64
alsa

Offline

#2 11-27-2011 14:51:54

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: Error in SDLAudioCallback

Hello

As mentionned in the download page :

Note for Linux users
You can start ffDiaporama from a console window to post the debug informations which will be useful in case of problems.
If you experiment sound problem with the preview, check the old SDL mode in the option dialog.

Then change the checkbox in the option dialog ...


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#3 11-27-2011 17:36:54

LeFritz
Nouveau membre
Registered: 11-27-2011
Posts: 4

Re: Error in SDLAudioCallback

I've tried that already with no effect. Same error message.

Is the error message generated by ffDiaporama or SDL?

Offline

#4 11-27-2011 18:47:22

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: Error in SDLAudioCallback

The error message is generat by ffDiaporama

There is 2 modes for SDL. The recent mode use sample as unit and the old use byte as unit. Changing mode as the effect to double or half amount of data transmit to SDL.

Error in SDLAudioCallback : Wanted len( 4096 )<>MixedMusic.SoundPacketSize( 3840 )

The message said that SDL not received wanted amount of data. But it's not double or half then here it's not a problem of SDL mode : There is a compute error of the amount of data.

The quantity is compute with the FPS defined for the preview in the option dialog :
- Wich FPS did you select ?
- Is the same problem with all FPS value ?


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#5 11-27-2011 20:08:55

LeFritz
Nouveau membre
Registered: 11-27-2011
Posts: 4

Re: Error in SDLAudioCallback

I get these messages:

3.15 fps
Error in SDLAudioCallback : Wanted len( 4096 )<>MixedMusic.SoundPacketSize( 3840 )

6 fps
Error in SDLAudioCallback : Wanted len( 4096 )<>MixedMusic.SoundPacketSize( 4000 )

8.333 fps
Error in SDLAudioCallback : Wanted len( 4096 )<>MixedMusic.SoundPacketSize( 2880 )

12.5 fps
Error in SDLAudioCallback : Wanted len( 4096 )<>MixedMusic.SoundPacketSize( 3840 ) 

18.75 fps
Error in SDLAudioCallback : Wanted len( 4096 )<>MixedMusic.SoundPacketSize( 2560 )

Offline

#6 11-27-2011 21:35:33

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: Error in SDLAudioCallback

On my kubuntu 11.10, i'm using pulseaudio
Ensure you have libsdl1.2debian-pulseaudio installed and not libsdl1.2debian-alsa


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

#7 11-29-2011 13:40:56

LeFritz
Nouveau membre
Registered: 11-27-2011
Posts: 4

Re: Error in SDLAudioCallback

Well, I don't use pulseaudio and I don't want to.

Offline

#8 11-29-2011 14:28:31

domledom
Administrateur
Registered: 09-17-2011
Posts: 1,080

Re: Error in SDLAudioCallback

You do not need to change your computer configuration for the sound, just to install the SDL package for pulseAudio in replacement of the ALSA one to force SDL to use PulseAudio to communicate with ALSA and not to communicate directly with ALSA.

I don't know why SDL can't communicate directly with ALSA but with this gateway, on my Kubuntu, it's working.


Processeur i5 - 8 Go RAM - Manjaro Linux KDE (64 bits) / Windows 7 (64 bits)

Offline

Board footer