[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] How to check sound format of mixer?



> I'm an oblivious idiot :-). A buffer method's already available in the
> current SVN tree.  You can use pygame.Sound (your_buffer) safely, the
> buffer just has to match the mixer criteria.
>
> Due to the SDL_Mixer implementation however, the buffer will be copied,
> so a manipulation of the buffer object after creating the Sound will not
> have any impact on it.
>

I'm looking at that code right now. It looks like it tries to copy it,
and if it can't, it raises an exception. But then there is a block of
code right after which would load it in place, but can not be reached
currently, because the previous code returns on error. Correct? So I'm
guessing this is already WIP by somebody :)


-- 
Alistair Buxton
a.j.buxton@xxxxxxxxx