Python play song from point
Question: I would like to play a song with python, but all the libraries I've tried, had
problems on starting the song from a precise second.

I mean, I want to start a song from second 10, for example. I've tried pygame,
but I have issues with the play function.

The issue is: The music is supposed to start at second 89, but it starts from
the beginning and after 1 sec. skips at 89.

Could anyone help me? Thanks

    
    
    import pygame
    
    
    pygame.init()
    pygame.mixer.init(frequency=22050, size=-16, channels=2, buffer=4096)
    pygame.mixer.music.load("C:\\Users\\Leonardo\\Desktop\\Projo\\music.mp3")
    
    pygame.mixer.music.play(0,89)
    
    clock = pygame.time.Clock()
    clock.tick(10)
    while pygame.mixer.music.get_busy():
        pygame.event.poll()
        clock.tick(10)
    


Answer: As per your issue:

> The issue is: The music is supposed to start at second 89, but it starts
> from the beginning and after 1 sec. skips at 83.

This line in your code `pygame.mixer.music.play(0,83)` should be

    
    
    pygame.mixer.music.play(0,89)
    

because
[pygame.mixer.music.play()](http://www.pygame.org/docs/ref/music.html#pygame_mixer_music_play)
takes two parameters first one is for the looping the music and second one is
the starting point of the music file. In your case the starting point should
be 89 not 83, as you mentioned in your question.

