Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Darkbasic MADPSP
18
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 17th Aug 2005 13:08 Edited at: 17th Aug 2005 13:23
i'm building a media player and need to make a bar visual and more can anyone please help?

thanks

Sorry if the title confused you into thinking i was i giving out code

Love games go to http://www.freewebs.com/halorc
or
http://www.freewebs.com/gamersmad
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 17th Aug 2005 16:12
What's a 'bar visual'?

Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 17th Aug 2005 16:16
why are you double posting? You were talking about this in the reacting to music thread!

My Website:
Darkbasic MADPSP
18
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 17th Aug 2005 16:20
like on windows media player 10 go to visualisazations bars and wave and select bars to see waht i mean

Love games go to http://www.freewebs.com/halorc
or
http://www.freewebs.com/gamersmad
Darkbasic MADPSP
18
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 17th Aug 2005 16:22
Quote: "why are you double posting? You were talking about this in the reacting to music thread!"


I need more info on how to do it onto imgage backgrounds

Love games go to http://www.freewebs.com/halorc
or
http://www.freewebs.com/gamersmad
NoteJam
19
Years of Service
User Offline
Joined: 11th Apr 2005
Location:
Posted: 17th Aug 2005 20:43
There is a mixer api call, a type of dll call.
Go to microsofts msdn site, and do a search on it.
After you have a dll call to get at the audio at the mixer, that I think will allow you to have visualizations that respond to the audio, you just have to figure out how to make a good display that responds to the waves current volume level at any point in time.

Regarding the bars. Do not know, but its neat.

Would a vizualization that just seems to respond to the music be good enough? With truespace 6, you get the ability to have music, and then lay out an animation that will then sync with it, which all coould be imported into dark basic.
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 17th Aug 2005 22:25 Edited at: 17th Aug 2005 22:27
Ok, I see what you mean. You want a visual representation of the amplitude of the sound wave. In theory, that should be quite straight forward. You convert your sound wave to a memblock, extract the amplitude, and use that to scale your bar. Take a look at my 'create sounds with no media' thread, and you should find a post in there somewhere where I have done something similar - intstead of bars, it drew waves - but it should give you a pretty good start. Btw, keep an eye out for VI-Studio whenever I manage to release it, as it will be perfect for making media player gui's.

BiggAdd
Retired Moderator
19
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 17th Aug 2005 22:59
Bass.dll and Bassinterface.dll allow u to do this. I don't know where to get them though.


SSDD
Same Sh** Different Day
Darkbasic MADPSP
18
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 18th Aug 2005 12:13
Thanks everyone Biggadd i considered that but then i read on a forum
that it dosen't do what it's supposed to do verywell but thanks for the idea
ric i've got one problem the memblock commands don't do music commands if anyone knows of hidden commands that do this please could you let me know and ric i'll download the software it's freeware isn't it?

Love games go to http://www.freewebs.com/halorc
or
http://www.freewebs.com/gamersmad
Ric
19
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 18th Aug 2005 18:08
Of course its freeware - that's why its in the code snippets area! You only need to use memblocks to get the visuals working. You can still apply the music commands to the wav or mp3 as normal.

BiggAdd
Retired Moderator
19
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 18th Aug 2005 18:18
I think Van B knows how to use Bass.Dll. Try asking him on how to use it and if it works as it should. Havn't seen him on msn for a while though.


SSDD
Same Sh** Different Day
Jess T
Retired Moderator
20
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 18th Aug 2005 18:23
You're all way off

What you're after is Fourier Transform to split the sound up into it's Frequency components, then using that, you do your visualization

You have to research how to do Fourier Transforms ( it's not fun to say the least ), then write a DLL that can get at the audio information fast enough ( DBP's commands would be too slow, I'd say ), then use that within DBP

Good luck, you'll need it.

Team EOD :: All-Round Nice Guy
Want Better dbHelp Files?
BiggAdd
Retired Moderator
19
Years of Service
User Offline
Joined: 6th Aug 2004
Location: != null
Posted: 18th Aug 2005 18:27
If only we were all fluent in C++


SSDD
Same Sh** Different Day
Darkbasic MADPSP
18
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 18th Aug 2005 20:35 Edited at: 18th Aug 2005 20:36
I don't have c++ i could import mpvis.dll it's winmedia player visuals

Love games go to http://www.freewebs.com/halorc
or
http://www.freewebs.com/gamersmad
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 19th Aug 2005 09:20
http://astronomy.swin.edu.au/~pbourke/analysis/filter/

PETA - People for the Eating of Tasty Animals
Darkbasic MADPSP
18
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 19th Aug 2005 10:26
wow thanks

Love games go to http://www.freewebs.com/halorc
or
http://www.freewebs.com/gamersmad

Login to post a reply

Server time is: 2024-05-19 18:56:36
Your offset time is: 2024-05-19 18:56:36