18 April 2021, 11:36 | #1 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
|
[blitz] playing MED files - soooo slow....
Hi,
I've been trying to play MED file with BB2 and .. it works but ... the result you can hear on the video below. At the very beginning of the video I start playing Agony tune inside HippoPlayer just to show that the converted file plays fine (converted to .med format with SoundStudio program). Later on I start the same .med file from BB2 and the music does not play right. [ Show youtube player ] And here comes the code for my tests: Can anybody tell me where the mistake is? Thanks |
18 April 2021, 14:16 | #2 |
Registered User
Join Date: Jan 2014
Location: Belgrade / Serbia
Age: 41
Posts: 1,004
|
You made no mistake. I experienced the same many times. And than I switched to phx's library which I recommend.
However, the solution to your problem would be that you add protracker command for speed like Fxy at the beginning of the 1st pattern of the med file. Also try octamed(exclusive?) command for speed 9xy. Last edited by Cobe; 18 April 2021 at 14:27. |
18 April 2021, 19:39 | #3 |
Registered User
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,343
|
Yeah, it's possible that it's simply misinterpreting the speed it should play at. On the other hand, having the debugger running might be slowing things down significantly, and the VWait command isn't particularly efficient when it's used in a mostly empty loop like that where framerate sync isn't important. Try changing VWait to
Code:
Delay_ 1 |
18 April 2021, 20:22 | #4 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
|
I changed VWAIT to Delay_ 1 and switched off debugger but unfortunately that didn't change a thing...
then I followed @Cobe's recommendation tu use phx's library and... Now the music plays smoothly and at the correct speed [ Show youtube player ] Thanks |
18 April 2021, 21:42 | #5 |
Registered User
Join Date: Dec 2017
Location: Poland
Age: 47
Posts: 282
|
Looks like I have small issue with the player.... cannot stop the music.
MTPlay Off MTEnd none of the above stops the playback - when my program quits to WB the music keeps playing... hmmm.. |
18 April 2021, 23:25 | #6 |
Registered User
Join Date: Jan 2014
Location: Belgrade / Serbia
Age: 41
Posts: 1,004
|
Hmm indeed. I've experienced that only if I ENDed without prior execution of those commands.
|
18 April 2021, 23:41 | #7 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,994
|
Maybe load the module up in Protracker and play it and see if its vblank or cia timed, Protracker will tell you.
It could be that Blitz doesn't support cia timed mods |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
soooo slow | JOHNFIN | support.WinUAE | 36 | 03 November 2020 13:45 |
Blitz Basic 2 med channel masking | leathered | Coders. Blitz Basic | 2 | 31 May 2014 17:50 |
Blitz Basic - MED problems | Hungry Horace | Coders. General | 49 | 20 January 2010 22:59 |
WinUAE slow after playing game | Heula | support.WinUAE | 5 | 03 January 2008 12:42 |
Absolute Classic MOD/MED files | Bloodwych | project.ClassicWB | 5 | 03 March 2005 23:54 |
|
|