![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programming Guru
![]() |
There must be some way to make it load sounds other then wav format? Am I missing something? Wav is terrible, the game music folder has already reached over 200 some megabytes. :mad:
|
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
You can zip them and load'em zipped. Python is all set up for that!
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#3 |
|
Programming Guru
![]() |
Zipping Wavs does absolutely nothing. I'll zip battle_2.wav, which is 31.8 megs ... now it is 28 megs. That's only a %12 reduction.
The ideal solution would be if Pygame reads MIDI, please to god make it so! That would change it from 31.8 megs to 0.068 megs. That's a %99.8 reduction!!!! :eek: I can't continue on if it reads WAV. Because we are about a quarter done the music. That means we won't even be able to put the game on a CD, besides hoping people won't bother waiting the extremely long loading and installation times. SUCCESS! import os, pygame
pygame.mixer.init()
os.chdir('c:/documents and settings/owner/my documents/finale/')
print os.listdir('')
pygame.mixer.music.load('boss_1.mid')
pygame.mixer.music.play()WOOT ![]() Last edited by Pizentios; Aug 3rd, 2005 at 4:13 PM. |
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Perhaps you could tie PyMedia into your program and use Oggs or MP3s?
|
|
|
|
|
|
#5 |
|
Programming Guru
![]() |
Errr look at my code, Mp3s and MIDIs all work.
![]() |
|
|
|
|
|
#6 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Really? Now that's interesting. I didn't know pygame could handle MP3s natively.
|
|
|
|
|
|
#7 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Trouble in Paradise!
PyGame 1.7.1 on Windows does not handle .mid or .mp3 files, it tells me something about the latest PyGame version shipping an old SDL_mixer.dll, at least for Windows!
__________________
I looked it up on the Intergnats! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|