Dark Bit Factory & Gravity

PROGRAMMING => Freebasic => Topic started by: DrewPee on December 03, 2006

Title: Sound help . . .
Post by: DrewPee on December 03, 2006
Hello again guys - I need some help (again) . . .

Is there any way that you can check (in a mod for example ) if a channel is playing? There was a feature in AMOS that allowed you to check to see whether a channel (4 channel on the amiga) had something played in it - this create a sort of graphic equaliser type thing for the four channels! i.e. if a sound played in channel 1 then put a 1 on the screen, if channel 2 then put 2 on the screen etc. etc.

Don't know if it is possible but I guess if it is somebody here will know?  ???  :P

Regards and Appreciation

DrewPee
Title: Re: Sound help . . .
Post by: MrP on December 03, 2006
I've been looking for something similar, I did manage to get something of sorts from the Bass dll, but that just returned values into an array to give you the various levels of the sound frequency, got the same result as the VU Meter effect from winamp..... Sorry this isn't and answer to your question, but I am also interested in this....
Title: Re: Sound help . . .
Post by: Shockwave on December 03, 2006
You can use the Bass dll to check the status of the sound channels.
Look for Camouflage music disk in the showcase and take a look at the source, Rbraz kindly released it.
Title: Re: Sound help . . .
Post by: DrewPee on December 03, 2006
Thanks Shockwave - forgot about that code . . . I remember it being released though!
I will have a looksee!!

MrP - If you manage something before me or visa-versa - would you like to share???

Drew
Title: Re: Sound help . . .
Post by: DrewPee on December 03, 2006
Just downloaded the code - there is some wicked stuff in there! The font is cool too! Nice work Clyde! Can i use? It will tie in with something I am doing if thats okay?

I will be releasing something eventually - I promise!!!

Drew
Title: Re: Sound help . . .
Post by: Rbz on December 03, 2006
@DrewPee: I did a little example using fmod, take a look at it, I guess that this is what you're looking for...  8)

 :cheers:


Title: Re: Sound help . . .
Post by: rdc on December 03, 2006
That is amazing Rbraz.
Title: Re: Sound help . . .
Post by: Clyde on December 03, 2006
Sure Drewpee you can use the font.
Title: Re: Sound help . . .
Post by: MrP on December 04, 2006
@rbraz..... Excellent example of how to use fmod to read the channel data.... Just got my version up and running.....

@drewpee..... If you haven't looked at the camouflage disk yet rbraz's example is very clear and easy to follow. I recommend you have a look at that to.....
Title: Re: Sound help . . .
Post by: DrewPee on December 04, 2006
Thanks guys . . . i have said it before and i will say it again - this place really is the dogs bollocks!!!!

 :buddies:

Drew
Title: Re: Sound help . . .
Post by: DrewPee on December 07, 2006
@Rbraz - you are a genius man - ive manipulated your code to put bars on a tinyptc screen - looks really cool (even if i do say so myself!).

It is EXACTLY what I wanted to do . . .  :clap:

@Clyde - thanks for letting me use the font . . . nice one!  :buddies:

Drew
Title: Re: Sound help . . .
Post by: Rbz on December 07, 2006
@Rbraz - you are a genius man - ive manipulated your code to put bars on a tinyptc screen - looks really cool (even if i do say so myself!).

hehe, thanks for the "genius", I'm glad that I can help

And I can't wait to see your new production  :)