22 November 2019, 16:35 | #1 |
Registered User
Join Date: Oct 2008
Location: Finland
Posts: 643
|
AHX player library
I made an (experimental) AHX player library for Blitz Basic 2. From my limited testing it seems to work both using a CIA interrupt and calling the play routine each frame. Sharing it here if somebody wants to try it out. Source code for the library and some examples are included.
Code:
--------------------------------------------------- --- AHX Library for Blitz Basic 2 --- --- by MickGyver (Mikael Norrgard) --- --------------------------------------------------- This library is based on the AHX replayer example version 2.3.3. I have only tested this in WinUAE (A1200, KS 3.1) but it is built using the 68000 version of the replayer. I have included examples for both a CIA player and a VBL player. Modules can be loaded as included binary files or as banks. To use it, copy ahxlib.obj to blitzlibs/otherlibs and run makedeflibs to rebuild deflibs. The library number is 196. Commands: --------------------------------------------------- AHXInitCIA Initialize the AHX player CIA interrupt handler. AHXInitPlayer Initialize the AHX player. AHXInitModule moduleAddress.l Initialize an AHX module. AHXPlaySubSong subSong# Play a subsong. 0 = Main/first subsong. AHXUpdate Call the play routine if not using the CIA. AHXStopSong Stop the currently playing song. AHXKillPlayer Kill the AHX player. Don't forget. AHXKillCIA Disable the CIA interrupt handler. Don't forget. AHXSubSongCount Returns the number of subsongs (.b) in the module. |
29 November 2022, 08:42 | #2 |
Unregistered User
Join Date: Nov 2005
Location: Tasmania
Age: 42
Posts: 893
|
Great work, I have been looking for Blitz AHX CIA replayer functionality for some time now.
However, it does not seem to be very compatible with the Display library, no matter what I do I just get a Workbench grey screen with a few horizontal black lines scrolling down. Also it would be nice if a few more of the functions listed in the AHX offsets file were implemented. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
integrating AHX player in game project - how? | Tigerskunk | Coders. Asm / Hardware | 8 | 24 April 2018 18:12 |
AHX CIA timing in Blitz2 | Anakirob | Coders. Language | 2 | 17 December 2017 10:21 |
Differences in AHX files made in AHX or HivelyTracker | Anakirob | support.Apps | 1 | 13 November 2016 10:30 |
AHX-pro needed for arranging soundeffects | buzzybee | request.Music | 8 | 28 December 2015 16:25 |
AHX, THX instruments settings | Frog | support.Apps | 9 | 05 April 2005 16:16 |
|
|