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.

Code Snippets / [DBP] Play/Read Freq Data (Bass.DLL)

Author
Message
DigitalFury
6
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 1st Dec 2010 21:28 Edited at: 25th Sep 2012 06:02
Removed. To be updated soon!

Morcilla
14
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 3rd Dec 2010 11:06
Sweet example!

DigitalFury
6
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 4th Dec 2010 05:34 Edited at: 4th Dec 2010 05:35
Matrix Wave Screen Saver


I plotted the data on a matrix and used a determinate to calculate the color changes. I couldn't figure how to smooth the color shifting, but you get the idea.

Example: Music Screen Saver 2
+ Code Snippet

Enjoy!

DigitalFury
gwheycs62egydws
7
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 22nd Feb 2011 15:23 Edited at: 22nd Feb 2011 15:28
hi

it seems the base.dll only likes mp3's with midi sound

if it's more than that it will not accept it

I tried one file I had and the program would crash

I get error (bass.dll) handle

ok it seems if the file has some extra data in it
bad frequencies' then it crashes

2 other files I tried worked fine and in one case voice was in there

If a thought is Just a thought ~ so whats the main thought ?
DigitalFury
6
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 22nd Feb 2011 19:42
@Resourceful - I didn't write bass.dll. I am just using it. I know it only works with certain files. Convert your files so it works. That is all I can tell you.

DigitalFury


Game Template: Everything you need to develop your games. Command List
gwheycs62egydws
7
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 23rd Feb 2011 00:17
umm I was wondering DigitalFury who did create "bass.dll" ?

If a thought is Just a thought ~ so whats the main thought ?
gwheycs62egydws
7
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 23rd Feb 2011 00:33
never mind I found the site and even the new one has the
same quirk for one of my mp3's

other than that nice examples to work with
it dose give me an idea for when some thing happens in a game
to give more feed back to the player about whats going on

If a thought is Just a thought ~ so whats the main thought ?
gwheycs62egydws
7
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 23rd Feb 2011 19:42
hi DigitalFury

umm a question about "timeoffset = Offset in seconds from the beginning"

can I please get a little bit more info about that ?

umm dose it mean the amount of time to wait before playing
or dose that mean the amount of information to load before playing ?

If a thought is Just a thought ~ so whats the main thought ?
gwheycs62egydws
7
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 23rd Feb 2011 20:07
I understand the command now
"timeoffset = Offset in seconds from the beginning"

it seems the mp3 I am using the data is either corrupt after
the 50 second start or there is nothing for Bass.dll to work with
once I changed it to 0 the file played fine

well basically the end of the file is missing

attached is the mp3 I am working with
for those who are fan of Duke Nukem 3d you should know this
music file

If a thought is Just a thought ~ so whats the main thought ?

Attachments

Login to view attachments
gwheycs62egydws
7
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 23rd Feb 2011 20:39
now I fully understand whats going on

because the music file I am playing is only 31 seconds
and the start point is set for 50 seconds
there is not data for Bass.dll to work with basically
the Bass.dll crashes or shuts off

I'm working on a few additions to what has been dun

showing the name and how much of the music file has played - check
adding in showing how long the music file is -- work in progress
stopping and starting - half check on the stopping part
showing a progress bar or something fitting with how the first
example is set up

I've got and idea about using Bass.dll in a game ware the
environment colors would change with the music even a thought
to do with weather changes

the latest version of Bass.dll can be Picked up at

http://www.un4seen.com/

things learned the hard and twisted way ;oP ;o)

If a thought is Just a thought ~ so whats the main thought ?
gwheycs62egydws
7
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 23rd Feb 2011 21:52
This is what I have so far

I added more detail to 2 of the error reporting codes

I also added the updated version of Bass.dll

If a thought is Just a thought ~ so whats the main thought ?

Attachments

Login to view attachments
gwheycs62egydws
7
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 8th Mar 2011 18:51
I know it will take some work but
I got and idea for a more 3d version of screen saver

it totally bring the user into the music environment

I know it will take me some to work of the detail's

with luck and time on my site I can have a post before
this tread gets locked

If a thought is Just a thought ~ so whats the main thought ?
gwheycs62egydws
7
Years of Service
User Offline
Joined: 17th Aug 2009
Location: The World
Posted: 6th Jun 2011 11:12 Edited at: 6th Jun 2011 11:14
with a couple of new additions I picked up
this will rile show what DBP can do

So much to understand

If a thought is Just a thought ~ so whats the main thought ?

Login to post a reply

Server time is: 2017-06-25 09:44:50
Your offset time is: 2017-06-25 09:44:50