forums

TNT Basic Forums > Programming Q&A
mp3 playback- Bang On
< Last Thread     Next Thread >
Author
Thread        Post A Reply

12-12-2001 02:43

Posted by:
Retrogeeks

Click Here to Email Retrogeeks   Find more posts by Retrogeeks

I decided to add some mp3 music to Bang On
I added 2 songs in the music 128,129

Then I Added the necessary code (which does work) but it cuts in and out during the playgame. the handle credits seems to work fine..

the framerate doesnt change using 48k,96k,128,160k bitrate and both 11khz and 44khz mp3.

I have never played with mp3 via programming before, but I would think the different setting would affect proc usage possibly uping fps speed ?


Procedure PlayGame()
Load Music 129
Play Music
{gplaying=true etc...
... Original Source
Sprite Off
wend }
stop Music
End Proc

And

Procedure HandleCredits()
Load music 128
play music
{ClearLetters()
Normal Source
Fade Down
}
Stop Music
End Proc

12-12-2001 10:56

Posted by:
John Treece-Birch

Click Here to Email John Treece-Birch   Find more posts by John Treece-Birch

mp3 playback

Looking at your code that all seems fine and should work. The framerate shouldn't affect how you have to use the mp3's either. We did have a bug like that a long time ago before we released but we fixed it and haven't had any trouble since. Can you give us some more information? What version of QuickTime and MacOS are you using and on what kind of machine?

Thanks in advance,
John

12-12-2001 15:54

Posted by:
retrogeek

Click Here to Email retrogeek   Find more posts by retrogeek

Machine info

Apple G4 Cube - 450mhz, Ati Rage 128 pro, 288mb ram.

Finder 9.2 , System 9.2.2 , Quictime 5.02, Carbon Lib 1.4

12-13-2001 11:00

Posted by:
John Treece-Birch

Find more posts by John Treece-Birch

mp3 bug

Impressive specs, that machine should definitely be able to play mp3's :)

Is there any chance you can give that file to me so I can try to get the same bug on my machine? My e-mail address is john at tntbasic dot com. It would probably be easier to just e-mail the offending mp3 and the code section because that would be a lot smaller.

Thanks,
John

All times are GMT        Post A Reply

Forum Jump:
< Last Thread     Next Thread >

< Contact Us - TNT Basic >

Powered by: vBulletin Lite Version 1.0.1 Lite
Copyright © Jelsoft Enterprises Limited 2000.