[SDL] SDL_mixer pops
Nathan Pierluissi
npierluissi at yahoo.com
Tue Jan 9 18:33:38 PST 2007
My program is basically like the program "TabIt" except I am using a recording of an instument playing each note. This probably takes up too much memory, so I would rather use soundfonts. I just didn't know how. So I will look into Fluidsynth and Audiality.
Are there any tutorials on how to use them with SDL? Thank you for your help.
David Olofson <david at olofson.net> wrote:
On Thursday 04 January 2007 23:59, Nathan Pierluissi wrote:
> Greetings:
>
> Is there any way to avoid popping/clicking when halting a channel
> (using Mix_HaltChannel) in the middle of a sound? Perhaps if the
> mixer waited until the next "zero" point to stop the channel. I am
> making a music program where played notes need to be stopped often.
> Thank you.
Well... I'm don't know exactly what you're doing of course, but I get
the feeling that SDL_mixer might not really be the right tool for the
job.
Have you looked into using a dedicated musical software synthesizer,
such as FluidSynth?
http://www.nongnu.org/fluid/
I suppose my Audiality engine could do the job too, though I should
say that the 0.1.x branch is dead, as a pretty much complete rewrite
is on the way. (I don't expect it to be compatible in any way at all,
basically.) The interesting part is that it uses the same type
of "objects" for everything, so sound effects (triggered from the
application) and instruments (triggered from the MIDI player) are the
very same thing - which means both have pitch control, envelopes,
polyphony with smart voice stealing etc.
http://audiality.org/
//David Olofson - Programmer, Composer, Open Source Advocate
.------- http://olofson.net - Games, SDL examples -------.
| http://zeespace.net - 2.5D rendering engine |
| http://audiality.org - Music/audio engine |
| http://eel.olofson.net - Real time scripting |
'-- http://www.reologica.se - Rheology instrumentation --'
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070109/53150854/attachment.html
More information about the SDL
mailing list