Re: [AD] kcm audio

[ Thread Index | Date Index | More Archives ]

On Tuesday 28 July 2009 10:28:21 am Elias Pschernig wrote:
> I'm also wondering about the parameter order in cases like this:
> al_attach_stream_to_mixer(mixer, stream)
> Wouldn't al_attach_stream_to_mixer(stream, mixer), i.e. the same
> parameter order as in the function name, make more sense?

The original idea was to put the target (object being acted on) as the first 
parameter, ie. the mixer is being modified to have a stream attached. This 
behavior would mirror C++ where the 'this' pointer would typically be a hidden 
first parameter.

Mail converted by MHonArc 2.6.19+