PlayMusic Issues - MacBookPro
Monkey Forums/Monkey Programming/PlayMusic Issues - MacBookPro
| ||
Hello Monkey Community! I just purchased Monkey Pro, after playing with the Demo Version. Awesome Language. I did the "Simple Game Tutorial" done by Jim from Smalltime Outlaws All the music files are in the mp3 format. The PlayMusic command on my Mac(HTML 5 Safari) plays feel seconds of the song and then restarts from the beginning, and it loops. If I play on iTunes it works fine. Also I compiled on my PC running Windows (HTML 5 on Chrome) and here it works fine. Is it an issue with Safari or with Monkey for Mac? Here is the code where the problem happens. Method OnCreate() SetUpdateRate (60) mapWidth = SCREEN_WIDTH / TILE_WIDTH mapOffset = (SCREEN_WIDTH Mod TILE_WIDTH)/2 playersImage = LoadImage("players.png", 32, 32, 32, Image.MidHandle) rocksImage = LoadImage("rocks.png", 48, 48, 8, Image.MidHandle) scoreBox = LoadImage("scorebox.png", 1, Image.MidHandle) background = LoadImage("background.png") foreground = LoadImage("foreground.png") mainMenu = LoadImage("mainscreen.png") deathScreen = LoadImage("dethscreen.png") scoreFont = New BitMapFont("numbers.png") For Local i:Int = 0 Until 10 scoreFont.AddChar(String.FromChar(48 + i), i * 24, 0, 24, 24, -10) End painSounds = [LoadSound("pain0.wav"), LoadSound("pain1.wav")] lavaSounds = [LoadSound("lavadeath0.wav"), LoadSound("lavadeath1.wav")] PlayMusic("Disco con Tutti.mp3") ' << ================== End |