![]() |
![]() |
#41 |
TinkerTailorContentMaker
Join Date: Nov 2009
Location: Bedfordshire
Age: 45
Posts: 1,210
|
Ok, amended. Program now runs, loads song and plays directly after.
|
![]() |
![]() |
#42 |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
does it stop when you press a key without crashing?
|
![]() |
![]() |
#43 |
TinkerTailorContentMaker
Join Date: Nov 2009
Location: Bedfordshire
Age: 45
Posts: 1,210
|
Yes, song stops but doesn't crash. If I run the program directly afterwards I get "error opening med library" despite erasing the banks before running.
|
![]() |
![]() |
#44 |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
right you probably need to free the player, try a "lib call (1,-36)"
otherwise, we're cooking on gas. now you can do Code:
track load "music.med",5 ppsave "music.pp",5,4 |
![]() |
![]() |
#45 |
TinkerTailorContentMaker
Join Date: Nov 2009
Location: Bedfordshire
Age: 45
Posts: 1,210
|
Ok, I`m taking it you mean to amend the program with "lib call (1,-36)"? I changed it and ran program again with same "error opening med.library"
|
![]() |
![]() |
#46 |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
put it at the end of the program. also, do it now from immediate mode.
for future reference here are all the library function offsets from the Music extension source code Code:
_MEDGetPlayer equ -30 _MEDFreePlayer equ -36 _MEDPlayModule equ -42 _MEDContModule equ -48 _MEDStopPlayer equ -54 _MEDDimOffPlayer equ -60 _MEDSetTempo equ -66 _MEDLoadModule equ -72 _MEDUnLoadModule equ -78 _MEDGetCurrentModule equ -84 _MEDResetMIDI equ -90 _MEDSetModnum equ -96 _MEDRelocModule equ -102 |
![]() |
![]() |
#47 | |
TinkerTailorContentMaker
Join Date: Nov 2009
Location: Bedfordshire
Age: 45
Posts: 1,210
|
Quote:
![]() |
|
![]() |
![]() |
#48 |
TinkerTailorContentMaker
Join Date: Nov 2009
Location: Bedfordshire
Age: 45
Posts: 1,210
|
So close but no cigar
![]() The code for the player shown on snapshot. Last edited by lordofchaos; 19 July 2019 at 15:19. |
![]() |
![]() |
#49 |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
hmm... and you didn't play the tune before packing it? it should have just been freshly loaded into the bank because i think the relocate function must change it in some way.
|
![]() |
![]() |
#50 |
TinkerTailorContentMaker
Join Date: Nov 2009
Location: Bedfordshire
Age: 45
Posts: 1,210
|
The tune does play after being loaded in, after the wait key instruction AMOS then packs it/saves to disk. This is code for packing >
Last edited by lordofchaos; 19 July 2019 at 15:19. |
![]() |
![]() |
#51 |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
yes you are loading the music with "track load" first, then you are playing it, which will CHANGE it, then packing it at the end. And it is packing the version that has already been relocated into some other area of memory, so it's not all there.
Just do track load IMMEDIATELY followed by ppsave. |
![]() |
![]() |
#52 |
TinkerTailorContentMaker
Join Date: Nov 2009
Location: Bedfordshire
Age: 45
Posts: 1,210
|
Eureka! A stupid mistake on my part! Ok the song is now packing correctly and playing back in the player correctly!
Thank you ![]() I`m sure this thread/info will prove useful to others too. Last edited by lordofchaos; 26 January 2015 at 14:08. |
![]() |
![]() |
#53 |
Glastonbridge Software
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,243
|
hoorah! so what is the compression ratio like after all that?
|
![]() |
![]() |
#54 |
TinkerTailorContentMaker
Join Date: Nov 2009
Location: Bedfordshire
Age: 45
Posts: 1,210
|
|
![]() |
![]() |
#55 |
AMOS Extensions Developer
Join Date: Jun 2007
Location: near Cambridge, UK
Age: 44
Posts: 1,924
|
Yeah, that's the kinda compression I like
![]() |
![]() |
![]() |
#56 |
TinkerTailorContentMaker
Join Date: Nov 2009
Location: Bedfordshire
Age: 45
Posts: 1,210
|
Yes, I didn't think the compression would be that good, for my second music disc I shall include a lot more tunes/gfx...
I have uploaded the completed disc in the zone, self booting and should run on A500+ upwards. Thanks to everybody that helped me out! ![]() Last edited by lordofchaos; 27 January 2015 at 00:36. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMOS or Blitz Basic 2 | Dreedo | Coders. General | 42 | 23 September 2014 21:48 |
Compilation issues using Amos Pro and WinUAE | CaptainNow | Coders. Language | 3 | 06 May 2014 15:22 |
jAMOS - new AMOS BASIC reimplementation in Java | Mequa | News | 16 | 03 June 2012 16:58 |
jAMAL - AMOS BASIC AMAL reimplementation in Java! | Mequa | News | 26 | 31 January 2012 02:12 |
Where's the amos.library on the 3-disk AMOS set? | andreas | support.Apps | 0 | 15 November 2001 16:04 |
|
|