#70 limit music player to mp3 files

Closed
opened 5 years ago by shuvit · 3 comments
shuvit commented 5 years ago

currently it will try to play any filetype in the directory. use glob to get only mp3 extension like doing for decks:

import glob
mainDir = bge.logic.expandPath("//")
fileName = mainDir + "textures\\decks\\*.png"    
deckList = glob.glob(fileName)
dict['deckList'] = deckList 
currently it will try to play any filetype in the directory. use glob to get only mp3 extension like doing for decks: import glob mainDir = bge.logic.expandPath("//") fileName = mainDir + "textures\\decks\\*.png" deckList = glob.glob(fileName) dict['deckList'] = deckList
Farmerjoe12 commented 5 years ago
Collaborator

Working on this currently

Working on this currently
shuvit commented 5 years ago
Owner

hmm, so now it’s not playing on startup when it should. looking at it.

hmm, so now it's not playing on startup when it should. looking at it.
shuvit commented 5 years ago
Owner

fixed startup, double press and duplicated global dict key. merged. Congrats!

fixed startup, double press and duplicated global dict key. merged. Congrats!
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.