Re: [LAD] SDL_mixer+LADSPA was:basic in-game audio synthesis api?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Cc: LAD <linux-audio-dev@...>
Date: Monday, April 6, 2009 - 4:20 pm

> passed by SDL_mixer to my sfx processing callback. 1880 samples at

The buffer size you get from an audio backend is normally difficult to
predict, and I wouldn't advice you to do so. Sometimes it may even
depend on the hardware you are using, so it is not guaranteed that it
will be the same on another machine. I don't know whether SDL
encapsulates that for you, that would be more a question for SDL
support.

Most audio processing apps use ring buffers to account for that variability.

Just use any value you think provides you with a reasonable latency.
If you get more from the backend, just make several calls to the
LADSPA, it shouldn't mean much overhead. If you get less, just process
that bit or save it for the next iteration.

L
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] basic in-game audio synthesis api?, james morris, (Fri Apr 3, 6:50 pm)
Re: [LAD] basic in-game audio synthesis api?, Esben Stien, (Tue Apr 7, 4:32 pm)
Re: [LAD] basic in-game audio synthesis api?, Stephen Sinclair, (Mon Apr 6, 3:40 pm)
Re: [LAD] basic in-game audio synthesis api?, Frank Barknecht, (Mon Apr 6, 4:56 pm)
Re: [LAD] basic in-game audio synthesis api?, Paul Davis, (Fri Apr 3, 8:46 pm)
Re: [LAD] basic in-game audio synthesis api?, james morris, (Fri Apr 3, 9:15 pm)
Re: [LAD] basic in-game audio synthesis api?, Paul Davis, (Fri Apr 3, 10:12 pm)
Re: [LAD] SDL_mixer+LADSPA was:basic in-game audio synthesis..., Luis Garrido, (Mon Apr 6, 4:20 pm)
Re: [LAD] basic in-game audio synthesis api?, Justin Smith, (Sat Apr 4, 2:30 am)
Re: [LAD] basic in-game audio synthesis api?, Luis Garrido, (Sat Apr 4, 9:02 am)
Re: [LAD] basic in-game audio synthesis api?, james morris, (Sat Apr 4, 11:29 am)
Re: [LAD] basic in-game audio synthesis api?, james morris, (Fri Apr 3, 8:34 pm)