Author Topic: Re Inventing the wheel  (Read 10045 times)

0 Members and 1 Guest are viewing this topic.

Offline Pot Noodle

  • Sponsor
  • Amiga 1200
  • *******
  • Posts: 271
  • Karma: 15
  • Computers have lots of memory but no imagination
    • View Profile
Re Inventing the wheel
« on: June 26, 2011 »
 :'( It's Sunday and I have been sat at my computer all day and got knowere, Give-up is the hardest thing to do at the
moment I want to use Bass.dll in BlitzMax I imagined it would be strait forward but no  ::) I have search every where
for a ray of light source code or something to help me on my way, I have the wrapper and dll but just can't get anything
out of it at all, I have used it before years ago in Visual Basic 6 worked a treat then, Now I know this is an old question
but does anyone out there know how to kick start this thing?
Thanks for any help as it's driving me mad  :diablo:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Re Inventing the wheel
« Reply #1 on: June 26, 2011 »
I will send ya files with Mod Music that work for Blitzmax tomorrow as I cant do it today because I am my friends house

Offline Pot Noodle

  • Sponsor
  • Amiga 1200
  • *******
  • Posts: 271
  • Karma: 15
  • Computers have lots of memory but no imagination
    • View Profile
Re: Re Inventing the wheel
« Reply #2 on: June 26, 2011 »
Cheers does yours have a full wrapper as some of em are just for playing music ?

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
« Last Edit: June 27, 2011 by Hotshot »

Offline Pot Noodle

  • Sponsor
  • Amiga 1200
  • *******
  • Posts: 271
  • Karma: 15
  • Computers have lots of memory but no imagination
    • View Profile
Re: Re Inventing the wheel
« Reply #4 on: June 27, 2011 »
 :'(  Hi Hotshot I have used that one Alan Module but it is not a complete wrapper you only get to play music and a few other things I am looking to reproduce a VU-Meter display so I need the full bass, If not then a pint or two of Bass!

P/s when will your site be up running?

Thanks
« Last Edit: June 27, 2011 by Pot Noodle »

Offline hellfire

  • Sponsor
  • Pentium
  • *******
  • Posts: 1294
  • Karma: 466
    • View Profile
    • my stuff
Re: Re Inventing the wheel
« Reply #5 on: June 27, 2011 »
I need the full bass.
word!  ;D
Challenge Trophies Won:

Offline Pot Noodle

  • Sponsor
  • Amiga 1200
  • *******
  • Posts: 271
  • Karma: 15
  • Computers have lots of memory but no imagination
    • View Profile
Re: Re Inventing the wheel
« Reply #6 on: June 27, 2011 »
Ya it's driving me to drink all this talk about BASS!

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17427
  • Karma: 499
  • evil/good
    • View Profile
    • My Homepage
Re: Re Inventing the wheel
« Reply #7 on: June 27, 2011 »
Quote
Hi Hotshot I have used that one Alan Module but it is not a complete wrapper you only get to play music and a few other things I am looking to reproduce a VU-Meter display so I need the full bass, If not then a pint or two of Bass!

Looking though Alan's wrapper it has the Getchannelvolume method?

Quote
P/s when will your site be up running?

When I've finished building it for him ! (which is probably going to be a while unfortunately).  Shame on me.

Shockwave ^ Codigos
Challenge Trophies Won:

Offline Pot Noodle

  • Sponsor
  • Amiga 1200
  • *******
  • Posts: 271
  • Karma: 15
  • Computers have lots of memory but no imagination
    • View Profile
Re: Re Inventing the wheel
« Reply #8 on: June 27, 2011 »
GetChannelVolume Method, I didn't see it in the version I have, Also there should be GetVarShort GetVarLong which is used to convert the output but there not there ether do you still have a copy? with the dll for ver reasons.
Thanks


Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Re Inventing the wheel
« Reply #9 on: June 27, 2011 »
are u looking for Bass.dll?  ???

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17427
  • Karma: 499
  • evil/good
    • View Profile
    • My Homepage
Re: Re Inventing the wheel
« Reply #10 on: June 27, 2011 »
Pot Noodle was looking for the wrapper for Bass.dll which is provided in the posts above,  now he wants to code vumeters :)
Shockwave ^ Codigos
Challenge Trophies Won:

Offline Hotshot

  • DBF Aficionado
  • ******
  • Posts: 2114
  • Karma: 91
    • View Profile
Re: Re Inventing the wheel
« Reply #11 on: June 27, 2011 »
There u go :)

Offline Pot Noodle

  • Sponsor
  • Amiga 1200
  • *******
  • Posts: 271
  • Karma: 15
  • Computers have lots of memory but no imagination
    • View Profile
Re: Re Inventing the wheel
« Reply #12 on: June 28, 2011 »
Thanks for that, I may be wrong here but from my readings there are different wrappers for different versions of bass.dll
the one above is simply for playing mod's like the old Pro-Trackers did.
I am looking for a Wrapper that contains this:

DWORD level,left,right;
level=BASS_ChannelGetLevel(channel); <--- This is the function used.
left=LOWORD(level)                                <--- Also these functions to convert the retuning level.
right=HIWORD(level)

If I find a wrapper with these functions in I will need the right version dll to go with it, & just to make it even more impossible it has to be compatible with BlitzMax  ;D

Thanks Guys for your help and understanding.

Offline TinDragon

  • Pentium
  • *****
  • Posts: 644
  • Karma: 24
    • View Profile
    • J2K's blog
Re: Re Inventing the wheel
« Reply #13 on: June 28, 2011 »
I havent used bass.dll with bmax but since all the bmax code generally does is access the functions of the dll I would think it possible to just add the calls to the required function in, after all they must be doing some sort of loadlibrary(bass.dll) type call then using something like getprocaddress to get the access to the functions. Will have a look at one of them if I get time, but currently looking after father as hes just come home from hospital.

Offline Pot Noodle

  • Sponsor
  • Amiga 1200
  • *******
  • Posts: 271
  • Karma: 15
  • Computers have lots of memory but no imagination
    • View Profile
Re: Re Inventing the wheel
« Reply #14 on: June 28, 2011 »
Ya you mean calling the methods directly with out a wrapper  :inspired: I will have a look at that thanks for  the idea.

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 909
  • Karma: 67
    • View Profile
Re: Re Inventing the wheel
« Reply #15 on: June 28, 2011 »
I have attached another implemtation of the BASS dll, made by some guy from Germany. It looks like it is used as an include instead of a module. From what I can see it has all the functions you would need already written into it. You can download the latest bass dll from this site: http://www.un4seen.com/

Offline Pot Noodle

  • Sponsor
  • Amiga 1200
  • *******
  • Posts: 271
  • Karma: 15
  • Computers have lots of memory but no imagination
    • View Profile
Re: Re Inventing the wheel
« Reply #16 on: June 29, 2011 »
Thanks Zawran I will give it a go, Must admit though I have never used Include before  ;D

Offline zawran

  • Sponsor
  • Pentium
  • *******
  • Posts: 909
  • Karma: 67
    • View Profile
Re: Re Inventing the wheel
« Reply #17 on: June 29, 2011 »
Include is used when you have code in seperate files and you want to join them together as one program. Just write "include "filename.bmx" in the top of your code and it will compile the bmax code from that file as if the code was written within the file you are working on.

Offline Pot Noodle

  • Sponsor
  • Amiga 1200
  • *******
  • Posts: 271
  • Karma: 15
  • Computers have lots of memory but no imagination
    • View Profile
Re: Re Inventing the wheel
« Reply #18 on: June 30, 2011 »
Thanks Zawran, I got it sorted after playing with different versions of Bass.dll and changing parts of the Bass.bmx
I have it working, I need to find a way to convert an Integer to byte ptr but all good.
Thanks again for all your help on this.

I would offer carmer but I don't even know what it is or if I can  ;D

Offline Shockwave

  • good/evil
  • Founder Member
  • DBF Aficionado
  • ********
  • Posts: 17427
  • Karma: 499
  • evil/good
    • View Profile
    • My Homepage
Re: Re Inventing the wheel
« Reply #19 on: June 30, 2011 »
I would offer carmer but I don't even know what it is or if I can  ;D

It's where you see
[Applaud] [Smite]

Click on Applaud :)  You can give Karma every couple of hours.
Shockwave ^ Codigos
Challenge Trophies Won: