start_pos - in seconds from the begining.
+ # see if we want to reuse the sound data or not.
a1 = pygame.sndarray.samples(sound)
a1 = pygame.sndarray.array(sound)
+ # see if samples per second has been given. If not, query the mixer.
+ # eg. it might be set to 22050
if samples_per_second is None:
samples_per_second = pygame.mixer.get_init()
+ # figure out the start position in terms of samples.
start_pos_in_samples = int(start_pos * samples_per_second)
+ # cut the begining off the sound at the start position.
a2 = a1[start_pos_in_samples:]
+ # make the Sound instance from the array.
sound2 = pygame.sndarray.make_sound(a2)