Author Topic: AHX player  (Read 50476 times)

0 Members and 1 Guest are viewing this topic.

Offline m0d

  • ZX 81
  • *
  • Posts: 10
  • Karma: 2
    • View Profile
Re: AHX player
« Reply #20 on: December 31, 2006 »
:D thanks Jim.

If i knew how to add these Karma points, i'd give you some :) So far i have no idea how  :-\

So instead, here's a little tune I composed in an hour or so because frankly, AHX rocks and i'm bored so what a wonderful way to spend time eh? It's called "Lava Burnt Pie". Just a shortie, but i've also included all 8 other tunes that i composed in the last few weeks - and I guess i may archive 'em as well as i dont think i will be composing any more in 2006 ;D

Enjoy!

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: AHX player
« Reply #21 on: December 31, 2006 »
When you've posted enough times you get an 'applaud' button under each user's av.  Click that to help that person achieve nirvana! :p

Thanks for the tunes!  Do you think anyone will use the code?  And if so, is there any way the patches can get into the source that was put in the OP?

Jim
Challenge Trophies Won:

Offline m0d

  • ZX 81
  • *
  • Posts: 10
  • Karma: 2
    • View Profile
Re: AHX player
« Reply #22 on: January 06, 2007 »
Hi Jim

I'm sorry i don't really know anything about the original source or how to get your changes merged, but if someone asks for the src any time from me i'll be sure to send them this stuff.

I could try and contact the original authors, or maybe i can by proxy the info through some of the sceners i know.

Oh, and here's tonight's creation attached (children of the pie) :) I actually did another one before this but i have been asked not to release it yet as it's been invited onto a music disk by UpRough.net (demosceners). awesome!


Oh one thing - i noticed that the frontend you made hangs on my XP systems when quitting. It holds up the system for quite a while then eventually releases it, well, i say that - im hoping it does because it did one, the rest of the times i've had to kill the task manually (then wait more, even still). Would this be something in the AHX code with the sound drivers not releasing or something? (i'm not a coder, i could be barking up any tree).

Edit: Oh no!! My new piece causes the updated AHX player to crash at about 59 secs in!  :o
I know in that part a lot of stuff is being pushed around in the instrument filters, i think it might be another unchecked limiter or something. it plays fine in delix/deliplayer and of course AHX itself.  :cheers:
« Last Edit: January 06, 2007 by m0d »

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: AHX player
« Reply #23 on: January 06, 2007 »
It doesn't hang for me, but it is definitely using a 2nd thread which could cause that.  How are you quitting the program?  The X in the window or Alt-F4 or?

I'll take a look at the new tune bug some time soon.

Jim
Challenge Trophies Won:

Offline m0d

  • ZX 81
  • *
  • Posts: 10
  • Karma: 2
    • View Profile
Re: AHX player
« Reply #24 on: January 06, 2007 »
It doesn't hang for me, but it is definitely using a 2nd thread which could cause that.  How are you quitting the program?  The X in the window or Alt-F4 or?

I'll take a look at the new tune bug some time soon.

Jim


I forget, i also can't seem to reproduce it on my laptop which is where it initially occured - i would put this to one side for the time being, it seems to be fine now so either it was related to a particular song that had been loaded, my system was misbehaving, or something else. For the record, i quit with both the X, the quit button, and i've never alt-f4'd on this app before, and it didnt make any difference this time. oh well :)

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2756
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: AHX player
« Reply #25 on: January 08, 2007 »
Quote
Oh one thing - i noticed that the frontend you made hangs on my XP systems when quitting. It holds up the system for quite a while then eventually releases it, well, i say that - im hoping it does because it did one, the rest of the times i've had to kill the task manually (then wait more, even still). Would this be something in the AHX code with the sound drivers not releasing or something? (i'm not a coder, i could be barking up any tree).

Edit: Oh no!! My new piece causes the updated AHX player to crash at about 59 secs in!  Shocked
I know in that part a lot of stuff is being pushed around in the instrument filters, i think it might be another unchecked limiter or something. it plays fine in delix/deliplayer and of course AHX itself.  Cheers!
@m0d: Please try this new player version, I did some modifications on Jim frontend ( hope you don't mind Jim :) )
Btw, your last song is working fine with this version.
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: AHX player
« Reply #26 on: January 08, 2007 »
I have no problem with you editing the source.  It's a shame that it no longer plays the current tune while you're browsing for another one though - I liked that!

Jim
Challenge Trophies Won:

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2756
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: AHX player
« Reply #27 on: January 08, 2007 »
I have no problem with you editing the source.  It's a shame that it no longer plays the current tune while you're browsing for another one though - I liked that!

Jim


Phew  :)
Challenge Trophies Won:

Offline m0d

  • ZX 81
  • *
  • Posts: 10
  • Karma: 2
    • View Profile
Re: AHX player
« Reply #28 on: January 09, 2007 »
Weee :) I will test it when i get home, doesn't work on my win2k system@work (complains of missing dll's, as usual).

Great news rbraz - You know, all we need now is a funky graphic routine and we could release it as a demo  :clap:

And just to celebrate the new player version, here's 2 more AHXes composed, enjoy :) 

:buddies:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: AHX player
« Reply #29 on: January 09, 2007 »
Still plan to fix the player.  I like all kinds of pie-related music.  Are you a butcher?

Jim
Challenge Trophies Won:

Offline m0d

  • ZX 81
  • *
  • Posts: 10
  • Karma: 2
    • View Profile
Re: AHX player
« Reply #30 on: January 19, 2007 »
Jim,

Take a look at this thread: http://www.un4seen.com/forum/?topic=6641.0

It seems that this plugin uses Hively, which is based on WinAHX but has the bugs fixed already, although we are finding more each day - thought it might be of interest as I put your source code modification out there and got a reply about it. :)

p.s got 4 more ahx's on my http://m0d.untergrund.net/ site :)

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: AHX player
« Reply #31 on: January 20, 2007 »
Is the source for their player available?  If so under what license?  If theirs is so much better, and is GPL, it's barely worth fixing this one.

Jim
Challenge Trophies Won:

Offline bbear

  • C= 64
  • **
  • Posts: 87
  • Karma: 4
    • View Profile
    • Legacy
Re: AHX player
« Reply #32 on: April 02, 2007 »
how about using the player with a C based program (and not C++) ?
I always have the same error in windows.cpp : at "AHXWaveOut::StartBackgroundPlay()" and " EventLoop()" -> _beginthread and _endthread undeclared

2. how about loading module from Resources or from an unsigned char tab, like I use Minifmod ?
how to implement that ?

Offline va!n

  • Pentium
  • *****
  • Posts: 1432
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Re: AHX player
« Reply #33 on: April 02, 2007 »
hehe... the good old AHX former known as AHX sound replayer source for windows *grin* ... i got the source years ago directly from Dexter/Abyss afaik... (it was forbidden for me, to share/spread it)... so its cool to see the source is now public :)

@benny:
AHX is a really nice tracking system... i used and compoed tracks with it too - back on the good old amiga days :)

If someone is interested, i will try to recover some of my old AHX v1 and v2 tunes... ^^
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline Jim

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 5301
  • Karma: 402
    • View Profile
Re: AHX player
« Reply #34 on: April 02, 2007 »
Quote
_beginthread and _endthread undeclared
If you're building with Visual Studio 2003 or previous, you need to make sure you're building with the Multithreaded Runtime libraries (VS2005 only has multithreaded so it's not a problem there).
Project->Properties->Configuration Properties->C++->Code Generation->Runtime Library.

If you're using devc++, I'm not sure what the fix is.  Those functions create and end threads, the subtle difference is that they make sure the C runtime has been initialised for that thread - each thread has its own C runtime state, eg. each thread has its own rand() seed, each has its own errno.

->va!n - it'd be great to hear some more tunes :)

Jim
Challenge Trophies Won:

Offline bbear

  • C= 64
  • **
  • Posts: 87
  • Karma: 4
    • View Profile
    • Legacy
Re: AHX player
« Reply #35 on: April 02, 2007 »
ah! it's ok now ;)
thanks

but about the second "problem" : I don't want to use a file selector, but a built-in file in resource, or better, in a char tab (like minifmod)
is it possible to adapt the same rout than MiniFmod (memopen,memclose,memread...) with ahx (tuneload) ? I tried but failed...

Offline Rbz

  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 2756
  • Karma: 493
    • View Profile
    • https://www.rbraz.com/
Re: AHX player
« Reply #36 on: April 03, 2007 »
...is it possible to adapt the same rout than MiniFmod (memopen,memclose,memread...) with ahx (tuneload) ? I tried but failed...
Yes, you can play direct from memory, I did it in this prod for intro inferno contest, you will need to convert your music into array and use this to play:

Code: [Select]
player = new AHXPlayer;
player->Init(NULL);
player->LoadSong(music, 13721);
player->InitSubsong(0);

Where "music" is your char array and "13721" is the music file length.

 :cheers:
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: AHX player
« Reply #37 on: April 03, 2007 »
->va!n - it'd be great to hear some more tunes :)

Definately !
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won:

Offline va!n

  • Pentium
  • *****
  • Posts: 1432
  • Karma: 109
    • View Profile
    • http://www.secretly.de
Re: AHX player
« Reply #38 on: April 03, 2007 »
ok, i have searched all my old unmarked backup CDs and found a few AHX (former known as THX) version 0 and 1 tunes... The only different between version 0 and version 1 files is just one byte in the header of each tune...  0 = old version (no filter sample support)... 1 = new version (filter support for samples!)... You can simple track with lastest AHX tracker, save the tune and change the 1 in the header to 0, to get the tune played with the old (small 680x0) replayer... (if you dont use, or can life without filtered samples ^^ ) just as small info/cheat :P

Sadly atm i found only 3 tunes by me... one of them is real shit and made in a few minutes for a 32k-coop-game before deatline, when i optimized the code and we had some bytes for a tiny tune and replayer ^^  (you can find my tunes unter the directory mr.vain)

However, this time i am back with a small AHX Tune collection...

(just over 850+ complete AHX tunes (~3,8 MB) packed as ZIP into ~945 KB :)
http://www.secretly.de/public/va!ns_AHX_Collection.zip


« Last Edit: April 03, 2007 by va!n »
- hp EliteBook 8540p, 4 GB RAM, Windows 8.1 x64
- Asus P5Q, Intel Q8200, 6 GB DDR2, Radeon 4870, Windows 8.1 x64
http://www.secretly.de
Challenge Trophies Won:

Offline benny!

  • Senior Member
  • DBF Aficionado
  • ********
  • Posts: 4384
  • Karma: 228
  • in this place forever!
    • View Profile
    • bennyschuetz.com - mycroBlog
Re: AHX player
« Reply #39 on: April 03, 2007 »
Cool. Downloading ... thx va!n - K++ !!!
[ mycroBLOG - POUET :: whatever keeps us longing - for another breath of air - is getting rare ]

Challenge Trophies Won: