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.

Work in Progress / iTunes??? yea, it works.

Author
Message
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 15th Jun 2010 03:45
I like making application GUIs in DB, I don't know why. But that's really what this project is about, seeing what can be done with the simple 2D commands.

Here's a shot of the visual, it doesn't actually sync with the music, i'd need a plugin to handle that. (not currently implemented into this version, hence the separate screenshot)


And here's the full screen shot, no external images were used.



I've attached the executable as some features need to be seen in action to get the full effect. Table columns can be reordered and turn transparent when moving one around. The left side "source" navigation doesn't change the view yet, but items are selectable and I've added a nifty animation to the structure iTunes doesn't even have. The volume slider is functional, but menus and audio controls are not (yet).

If you want to play music (as the library is hard-coded), rename any mp3 to "c:\test.mp3". I have another version that dynamically imports mp3 files into the table and reads their ID3 tags and I'm working on an XML parser to read existing iTunes library files. And I *think* I have an example somewhere that knows when an iPod is attached (but no syncing! ).

I'm trying to make this as close to the real iTunes as possible, just to see if DB(and myself) can do it. In the process of writing this, I'm keeping a small library of GUI functions I've written to do some of these effects that I'll post in code snippets when I'm done.

And if you're wondering if this project sounds familiar, yes I've posted it before, but it was about a year ago. I've updated many things since then. As for the low framerates you might see, that's mainly due to the font size being called.


"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke

Attachments

Login to view attachments
Butter fingers
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: Mecca
Posted: 15th Jun 2010 11:37
very very nice looking. I'm downloading now.

I want robotic legs.
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 15th Jun 2010 15:09
Woah shiny...

"everyone forgets a semi-colon sometimes." - Phaelax
Brendy boy
18
Years of Service
User Offline
Joined: 17th Jul 2005
Location: Croatia
Posted: 15th Jun 2010 21:29
absolutely magnificent

Sixty Squares
17
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 20th Jun 2010 20:59
Wow, I thought you had taken a screenshot of iTunes until I read your post. Great work.

Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Jun 2010 02:55
alpha transparency really kills the frame rates! I'm struggling to keep it above 30 fps now, so I've decided to work on an optimized version of the GUI. It's almost ready (visually) and currently gets about 1450 fps without displaying text. A huge improvement thanks to memblocks and sprites.


"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 8th Jul 2010 23:57 Edited at: 8th Jul 2010 23:57
I've made some slight changes to the drawing routines among other optimizations to create a smoother appearance (most notably the scrollbars) and increased speed by more than 20x!

The downside is that displaying text automatically cuts the framerates down by at least 400. There's something that's bringing my current version down as low as you see in this screen (about 350fps) that I haven't tracked down yet, but it's still way above the 14fps I had on my first version seen at the top of the thread.




"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke

Attachments

Login to view attachments
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 9th Jul 2010 00:31
Beautiful... I remember your really nice and shiny text editor in the DBC challenges... You have a real talent for this tuff

May I ask how you were able to tell how far in the song you are? (That little bar at the top)

TheComet

Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 9th Jul 2010 01:10 Edited at: 9th Jul 2010 01:21
get a timestamp when you start the song, subtract from timer() to see how many seconds it's been playing. The song length itself I think is in the ID3 tag. If not, then it's easy to calculate the song length, as long as it doesn't have a variable bitrate.


Here's another part I'm working on:



"Any sufficiently advanced technology is indistinguishable from magic" ~ Arthur C. Clarke

Attachments

Login to view attachments
Eminent
13
Years of Service
User Offline
Joined: 15th Jul 2010
Location:
Posted: 13th Aug 2010 02:55
Cool. Phaelax for president!

Login to post a reply

Server time is: 2024-03-29 12:59:31
Your offset time is: 2024-03-29 12:59:31