Ticket #250 (reopened enhancement)

Opened 10 years ago

Last modified 6 years ago

Play random music

Reported by: qubodup Owned by: parpg
Priority: major Milestone: Release: Techdemo 2
Component: scripts Version: trunk
Keywords: random, audio, shuffle Cc:
Blocked By: Blocking:


To display more of the available media, music tracks should be picked randomly for playback.

This can be done by replacing


from scripts/ with

self.sounds.playMusic(random.choice(glob.glob(os.path.join("music", "*.ogg"))))

and adding

import random import glob import os

to the file

Sorry for this ... patch form


Change History

comment:1 follow-up: ↓ 2 Changed 10 years ago by b0rland_parpg

  • Milestone changed from Techdemo 1 to Demo 1

comment:2 in reply to: ↑ 1 Changed 10 years ago by qubodup

Replying to b0rland_parpg: Can we have this included in Techdemo1? It would be a shame to hold back material, it would seem like less than actually is to testers and the music writers want their work exposed as well of course.

comment:3 Changed 10 years ago by barra_parpg

  • Milestone changed from Demo 1 to Techdemo 2

comment:4 Changed 10 years ago by barra_parpg

  • Keywords random, audio, shuffle added

comment:5 Changed 10 years ago by barra_parpg

  • Status changed from new to closed
  • Resolution set to fixed

(In [527]) Ticket #250. Patch by qubodup:

  • Adding random audio track playback
  • Code review appreciated!
  • closes #250

comment:6 Changed 6 years ago by Smithk395

  • Status changed from closed to reopened
  • Resolution fixed deleted

Well I really enjoyed reading it. This information procured by you is very practical for correct planning. feccdgegddebabbb


Add a comment

Modify Ticket

as reopened

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.