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

Re: [pygame] starting sound playback at offset



I didn't mean copying the sound - I meant with SDL could you make a mixer chunk that pointed to a portion of some other chunk.

or are you saying it's easy in pygame to make a sound that points to a subset of the content of another sound? (like a subsurface...) If so, how would you do that?

On Fri, May 9, 2008 at 12:17 AM, René Dudfield <renesd@xxxxxxxxx> wrote:
yeah, pretty much.

Doing that from python is just as easy though.


On Fri, May 9, 2008 at 5:16 PM, Brian Fisher <brian@xxxxxxxxxxxxxxxxxxx> wrote:
> From looking at SDL_mixer it's hard to tell if it would even support playing
> from an offset... Would adding support for playing from an offset in pygame
> just be a matter of manually making a new chunk object that would point to a
> place within the original chunk for the sample?
>
>
> On Fri, May 9, 2008 at 12:09 AM, René Dudfield <renesd@xxxxxxxxx> wrote:
>>
>> yeah, you'll have to chop up the Sound samples yourself for that...
>> which shouldn't be too hard.
>>
>> cheers,
>
>