Skip to content

Commit

Permalink
added an audio file transform function
Browse files Browse the repository at this point in the history
  • Loading branch information
bydariogamer committed Apr 27, 2021
1 parent 280ae90 commit a6fe8be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ SONGS = [] # [song title, path]
add_songs_in_folder(os.path.join(PATH, 'assets', 'songs'), SONGS)

for song in SONGS:
if song[0].split('.')[-1] != 'ogg':
song[0] = transform(song[0], 'ogg', True, True)
if song[0].split('.')[-1].lower() != 'ogg':
song[1] = transform(song[1], 'ogg', True, True)


# GAME LOOP
Expand Down

0 comments on commit a6fe8be

Please sign in to comment.