[Freeciv-Dev] Re: sound development
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Tuomas Airaksinen wrote:
> And others that are listed on sound development page at freeciv.org, yep.
Unfortunately there's not much more than the events atm :(
> > data1 and data2 would be opaque pointers to appropriate data for given
>
> Do you mean that all the sounds should be loaded into memory or something?
No. The sound() function will select proper sound handle for the action
and parameters and pass it to actual sound making plugin. The handle
could be filename.
something like
void sound (pplayer, action, data1, data2) {
Sound snd_handle = get_sound_handle (pplayer, action, data1, data2);
sound_play (snd_handle);
}
The get_sound_handle() selects sound handle based on config file and
combination of parameters.
The way I want it to work (and the direction in which I am developing)
is to resemble X resources.
sound_play() is a stub function for plugin's play function. It might mix
the wave with others, spool it to esd, whatever it needs to do the
output
> I'm not a specialist but I think we should use some present library/mechanism
> for sounds (I would suggest libesd or libmikmod).
As I have written in other mail, atm I am not interested in actual
implementation of sound output. I want to do it through plugins,
however. So there could be plugins for esound and for libmikmod or
whatever
> > The SOUND would be a macro so it could be disabled during compilation
>
> Umm.. Yes, why not. Or simply a function ( sound(params)), which would
> check if SOUND is defined or not (and select mechanism to use if there
function call overhead (if not optimized out by compiler). But it does
not matter atm too :)
Edheldil
- [Freeciv-Dev] Re: sound development, (continued)
- [Freeciv-Dev] Re: sound development, Tomasz Wegrzanowski, 2000/06/18
- [Freeciv-Dev] Re: sound development, Tuomas Airaksinen, 2000/06/23
- [Freeciv-Dev] Re: sound development, Dan Sugalski, 2000/06/23
- [Freeciv-Dev] Re: sound development, Sam BC, 2000/06/25
- [Freeciv-Dev] Re: sound development, Tuomas Airaksinen, 2000/06/25
- [Freeciv-Dev] Re: sound development, Tomasz Wegrzanowski, 2000/06/25
- [Freeciv-Dev] Re: sound development, Tuomas Airaksinen, 2000/06/29
- [Freeciv-Dev] Re: sound development, Tomasz Wegrzanowski, 2000/06/29
- [Freeciv-Dev] Re: sound development, Dan Sugalski, 2000/06/26
- [Freeciv-Dev] Re: sound development, Jarda Benkovsky, 2000/06/26
- Message not available
- [Freeciv-Dev] Re: sound development,
Jarda Benkovsky <=
|
|