English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

 
 
Thread Tools
Old 18 April 2021, 11:36   #1
peceha
Registered User
 
peceha's Avatar
 
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
peceha is online now  
Old 18 April 2021, 14:16   #2
Cobe
Registered User
 
Join Date: Jan 2014
Location: Belgrade / Serbia
Age: 41
Posts: 999
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.
Cobe is offline  
Old 18 April 2021, 19:39   #3
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,334
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
and see if it makes any difference.
Daedalus is offline  
Old 18 April 2021, 20:22   #4
peceha
Registered User
 
peceha's Avatar
 
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
peceha is online now  
Old 18 April 2021, 21:42   #5
peceha
Registered User
 
peceha's Avatar
 
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..
peceha is online now  
Old 18 April 2021, 23:25   #6
Cobe
Registered User
 
Join Date: Jan 2014
Location: Belgrade / Serbia
Age: 41
Posts: 999
Hmm indeed. I've experienced that only if I ENDed without prior execution of those commands.
Cobe is offline  
Old 18 April 2021, 23:41   #7
Galahad/FLT
Going nowhere
 
Galahad/FLT's Avatar
 
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 8,986
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
Galahad/FLT is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:23.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07070 seconds with 13 queries