[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2009-07-28, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> Just was trying to use the audio stream functions. Should we do the
> following renaming?
>
> al_create_stream(buffer_count -> al_create_stream(fragment_count
> al_get_stream_buffer -> al_get_stream_fragment
> al_set_stream_buffer -> al_set_stream_fragment
>
> It seems to be me that is what is meant. Also:
Fine by me.
> al_get_stream_used_fragments -> al_get_available_stream_fragments
>
> The word "used" in there really didn't tell me anything.
I had to read the comments just now to understand what was meant.
It's "used" in the sense that the audio driver has used it up.
But it doesn't make sense from the user's point of view.
Your suggestion is better.
> 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?
Yes.
Peter