ZFGC

Projects => Other Projects => Topic started by: gm112 on May 05, 2006, 03:54:23 am

Title: MP3 PLAYER(i totally redid it)
Post by: gm112 on May 05, 2006, 03:54:23 am
UPDATE!!

Version 0.1a

------
-The timer is now exact! Scroll down on explaination how to read it.
-Repeat button is there but it broke somehow..
-Stop Button fixed!
-Time bars(Current Time and Full Length)
------

Heres the linky:
 http://s4.quicksharing.com/v/8679241/mp3_player.zip.html

Explination on how to read the clock

---
When you see the current time and full length you see something like "4.32222210" .
That is because the command I used gives the exact value that is given. Now how to read it.
This part isnt that difficult all you need to do is take the number left to the decimal sign and the 2 numbers right of the decimal sign and bam!
So the number that is said up above the time is "4:32".

Alternative explination.

Take the first 3 numbers you see and after the first number pretend that the . is a : and bam!

Hopefully that helped and this will keep on progressing!

ENJOY!


---------------------------------------------------------------------

IT HAS COME BACK AND KICKED ASS!

New Features are at the bottom.


-----------------------------------------------------------------------
This old version has been cancled! The new and improved version has stomped it!

Quote
Well The details are the same as the previous except added plentyful of things.

Added: Stop,Play,Repeat(kinda buggy)

Soon: Pause,Skinnable GUI, plenty of bug fixes

Current Version: New! 1.0

SCREENSHOT!
(http://www.imgmonkey.com/image/4056-untitled.PNG)

http://www.imgmonkey.com/image/4056-untitled.PNG
http://www.savefile.com/files/5238069
There's the link

Much more will be added in the future!

Enjoy!



-------------OLD VERSION!

Code: [Select]
Version 1.2:
YES! all bugs fixed!
Updates:
Can choose another song when your done with one*Helios
Clock added*Helios
Displays the filename you loaded(including path)*Helios
Better text color*Helios
Shows Mem usuage on the GUI*ME!(the reason i added this is because task man is a liar!)
http://www.savefile.com/files/5601349 enjoy!
No bad fetures to post
Version 1.1A:
-changes:
hit x to close
http://www.savefile.com/files/2088046

Version 1.1:
http://www.savefile.com/files/9307857
Updates:
-Memory Leaked discovered and fixed*fixed by helios
-Repeats your songs now
-Cross compadible to all OS'S*gatta get mac and linux so i can compile them for thoese*

Un happy features:
-gatta re run it for a new song

Version 1.0:

http://www.savefile.com/files/5939428   enjoy!
Bugs:
-Memory Leak
Un happy stuff:
-Need to switch for new song
Title: Re: MP3 PLAYER(i totally redone it)
Post by: AoDC on May 05, 2006, 08:03:25 am
Screenshots?

Also, it should be "redid," not redone ;)
Title: Re: MP3 PLAYER(i totally redone it)
Post by: gm112 on May 05, 2006, 07:32:14 pm
lol. my bad. Sure will post them once i edit htis post
Title: Re: MP3 PLAYER(i totally redid it)
Post by: Infinitus on May 05, 2006, 07:37:32 pm
Erm, why have you got 2 topics for this? You have one in Completed and WIP.
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on May 05, 2006, 07:55:03 pm
deleted the other topic.

If anybody gets any gliches please post em. Soon this will be posted as a linux and mac app too just gatta get them os's.
Title: Re: MP3 PLAYER(i totally redid it)
Post by: AoDC on May 07, 2006, 12:58:57 am
BlitzMax - right? Its obvious XD (App Icon, Default Text, All OS Compatible, etc.) Nice =)

It worked for me, but still - GUI > Text  ^_^.
Title: Re: MP3 PLAYER(i totally redid it)
Post by: DanTheMan on May 07, 2006, 03:37:00 am
could you upload it somewhere other than Savefile?  I can't get to it at all.

Try http://www.turboupload.com/ for a temporary fix.  They'll only host it for 30 days, but it'll probably work until Savefile is up and running again.
Title: Re: MP3 PLAYER(i totally redid it)
Post by: Aliento on May 07, 2006, 03:44:21 am
The wif- I mean WinAmp would KILL me if she found me in this topic...

Anyways, after you've got the core functions down and have a good idea of everything you want to do, start work on a GUI. but that's obvious, I don't have to tell you that obviously.

Yeah...so what was the point of this post again? I forget, but at least I got to make a horribly shitty joke about angry wives.
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on May 07, 2006, 01:40:44 pm
savefile is up.

the point of this was to test my skills
Title: Re: MP3 PLAYER(i totally redid it)
Post by: DanTheMan on May 07, 2006, 04:48:45 pm
savefile is up.

http://img.photobucket.com/albums/v41/danthemanms/not_really.png
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on May 08, 2006, 01:26:00 am
wtf i uploaded it. hold on here. http://www.savefile.com/files/5238069

EDIT: sorry for the mistake
Title: Re: MP3 PLAYER(i totally redid it)
Post by: Aliento on May 08, 2006, 03:03:07 am
the point of this was to test my skills
No, no, I meant what was the point of ME posting in this topic, not you making an MP3 player. Sorry for the confusion.
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on May 28, 2006, 04:07:19 am
Redid it once again! Lost features temporarly because this is Early beta 0.1. Ok heres the new features so far

MIRROR 1: http://s21.quicksharing.com/v/2282016/mp3_player.zip.html

MIRROR 2: http://www.savefile.com/files/9962189

--------
-Skinnable GUI
Crosshair
Play Button
Stop Button
More to that soon.
-Fixed Volume controls. Also a volume bar to add with that(Cant move it up and down with the mouse yet)
-Bettered proformace.
----------

What is lost temporarly

-Repeat
-The stop button might work sometimes
-Progress in the song

------------------
Soon to come
------------------
-Support files for: mod,ogg,xm,wma
-Playlists
-All the missing features
-The time will be correct also it'll have a progress bar.


Alright Skinners! Start making some skins! All the skin images are in the Gfx folder for now you can change the images but soon you will be able to do more.

Enjoy!
Title: Re: MP3 PLAYER(i totally redid it)
Post by: AoDC on May 28, 2006, 04:44:13 am
Big improvements! Very good. Just fix the bugs you already listed :P
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on May 28, 2006, 08:17:15 am
UPDATE!!

Version 0.1a

------
-The timer is now exact! Scroll down on explaination how to read it.
-Repeat button is there but it broke somehow..
-Stop Button fixed!
-Time bars(Current Time and Full Length)
------

Heres the linky:
 http://s4.quicksharing.com/v/8679241/mp3_player.zip.html

Explination on how to read the clock

---
When you see the current time and full length you see something like "4.32222210" .
That is because the command I used gives the exact value that is given. Now how to read it.
This part isnt that difficult all you need to do is take the number left to the decimal sign and the 2 numbers right of the decimal sign and bam!
So the number that is said up above the time is "4:32".

Alternative explination.

Take the first 3 numbers you see and after the first number pretend that the . is a : and bam!

Hopefully that helped and this will keep on progressing!

ENJOY!
Title: Re: MP3 PLAYER(i totally redid it)
Post by: Fox on May 28, 2006, 09:41:11 am
And here's the first skin! :D
Cold Steel by Fox! (Click) (http://s16.quicksharing.com/v/3425881/ColdSteel_1.0_by_Fox.zip.html)
(Btw, shouldn't this be in WIP already?)
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on May 28, 2006, 06:19:05 pm
Official. Fox's skin has made it to be official default skin! Also I forgot to tell you that next version will be a 1.0 and it will have better features on skinning,and a couple of presents
Title: Re: MP3 PLAYER(i totally redid it)
Post by: Soulja on May 28, 2006, 07:53:38 pm
Wow, it's kinda confusing to use the program (what with the up's and the down's and the repeat not working :P), but it works good, I tried out a bunch of .mp3's and they all worked great. I think you should seperate Play and Load, though, and add a pause button. Also, it shouldn't be too hard to make the time display right... you could do something like:
Code: [Select]
time = /*however you get the time*/;
minutes = round(time);
seconds = round(time-minutes*100);
write(minutes+":"+seconds);
(btw, that's not real code, it's just an example)

I hope I helped. Good luck with this project!
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on May 29, 2006, 12:26:43 am
ummm I'm am not using game maker.I'm using the actual program !@#$%
Title: Re: MP3 PLAYER(i totally redid it)
Post by: Alex2539 on May 29, 2006, 02:12:17 am
The method you stated for reading the time is wrong. Quite frankly, I can't be 2 minutes and 84 seconds into Pruple Haze. In reality, the number is purely in minutes. after the decimal, it shows a fraction of a minute. In order to obtain the number of seconds, you would need to multiple it by 60. I suggest that you display the number of minutes, then to show the seconds just subtract the number of minutes then mulitply by 60. Your method would have worked only if the number of seconds per minute was 100.

[edit]I just found 3 other things that could be fixed, all demonstrated in the following screenshot:
(http://img.photobucket.com/albums/v103/alex2539/playerproblems1.png)
1 - The progress bar should be a fixed length. I tried playing 2112, which is a 20 minute epic by Rush, and the bar extends off the screen. Also, the total time seems to be wrong., considering the song isn't 2 hours long :S
2 - The mouse should be hidden. The cursor is hidden behind the mouse! I wants to see the pretty crosshairs!
3 - The crosshairs aren't transparent. The black can go over certain parts. It's pretty minor though. If you just make the image transparent it'll work. I know because I downloaded Fox's skin and his transparent arrow (which is hidden by Windows's mouse :( ) works great.

[edit2] Well, I found that you've made the screen 600 pixels wide, thus accomodating for only 10 minute songs! I noticed that it advances by 1 pixel per second :P.
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on May 29, 2006, 09:16:41 pm
I did a smal update. The minute finally reads corectly but the seconds is a !@#$%.(Once I have that fixed I will immediately post the update including the progress bar).

Known Bugs:
-The clock is a tough one Dont worry guys I'm working on that
-Process bar goes out of the screen if the song is longer than 10 minutes.
-The crosshair(mouse) somehow ends up under the buttons and we dont like that!

LINKY: http://s21.quicksharing.com/v/5417988/mp3_player.zip.html

Updates:

------------------
-Now the mouse is gone until you load your song then it dissapears again(Fox this update was just for your skin too.)
-Foxes new skin is the best there was made so far so I made his skin official.
-The clock is now 50% acurate... the minute (sometimes breaks) seconds is broken! >_<.
------------------
Next update what will be expected:
-----------------
-100% Acurate clock
-Fixed process bar
-everything skinnable(Including the font)
-Maybe if I get far enough I'll add a ini file so you can move everything around!
-----------------

Enjoy!
Title: Re: MP3 PLAYER(i totally redid it)
Post by: Soulja on May 29, 2006, 10:51:31 pm
ummm I'm am not using game maker.I'm using the actual program Fecal matter

I didn't say you were using Game Maker. I was just assuming that what you're programming it in has a function for rounding and a function for writing text. I don't know what the functions are, so I put round() and write(). But, apparently it won't work anyway, because the time didn't work like you said it did.
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on June 03, 2006, 02:27:46 am
UPDATE!!!!!!!!!!!!!!
downloady!: http://www.savefile.com/files/8811053

UPDATES!
-----------------------
-Now reads song artist, song title, and album --This replaces that directory/filename text
-reimplemented minimize/maximize
-reduced the lag that occured while playing the song
-Shows CPU and Memory use
-----------------------

Expected next update:
-Hopefully proper time read
-Definatly the crosshair button fix

When them two bugs are fixed then this mp3 player will be declared ready for new skin features
Title: Re: MP3 PLAYER(i totally redid it)
Post by: DanTheMan on June 03, 2006, 02:43:55 am
Hm.  Once again, it's a nifty tool, but I'm afraid I'm probably not going to use it, at least not if I want to use my computer for other things at the same time.  On a related note, I think your "CPU usage" measurement is kinda wrong.  Here's a screenshot:
(http://img145.imageshack.us/img145/1042/somethingswrong2lz.th.png) (http://img145.imageshack.us/my.php?image=somethingswrong2lz.png)

My CPU usage shot up to 100% and stayed there the whole time.  Opening up Paint to paste the screenshot took a good 20 seconds.

It's a cool tool, but it hogs so many resources that I won't use it.  Sorry.
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on June 03, 2006, 02:52:10 am
no thats the exact value dan. It's using not even 1 cpu


EDIT!: also task manager lies! helios taught me this trust me! the If this was using 100% of your cpu your computer would be lagging like Fecal matter
Title: Re: MP3 PLAYER(i totally redid it)
Post by: DanTheMan on June 03, 2006, 03:22:19 am
It may not be at 100%, but it's certainly not using only 1% of the CPU.  I already told you, my computer does lag as a result of having it open.  It's not as bad as other times that it's lagged, but it is noticeable. 

I have a question though:  Is the arrow cursor in the mp3 player application supposed to make smooth movements?  It lags horribly for me, so it will jumpe from place to play if I simply move my mouse.  It seems to only be refreshing the position about 3 times per second, and it looks odd.  This isn't a major issue, but like with the other problem I have, it is noticeable. 
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on June 03, 2006, 03:27:47 am
now the mouse...well its a memory leak that i just recently discovered with the mp3ID tag reader. I'm currently tracking this cause. This only affects the mp3 player(for me) and not other apps. Also your sound isn't affected in any way neither.

EDIT: alright reduced the lag. Still choppy but it's not as bad as it was before. Also the mem reader is confirmed correct. the cpu usage reader is correct it has to be. Helios would agree to me on them two. anyways I'll upload the update

http://www.savefile.com/files/8811053
Title: Re: MP3 PLAYER(i totally redid it)
Post by: Infinitus on June 03, 2006, 07:33:52 am
EDIT!: also task manager lies! helios taught me this trust me! the If this was using 100% of your cpu your computer would be lagging like Fecal matter

It hogging the resources because you main loop has nothing in it and it never hands back control the the OS, stick a PollSystem() command in the loop and it should reduce the CPU usage. Also the CPU usage your basing it off is the FMOD cpu usage not your programs CPU usage.
Title: Re: MP3 PLAYER(i totally redid it)
Post by: Fox on June 03, 2006, 02:36:37 pm
It sure is an improvement. But... I can play all the songs, but there's one song (Analogue by A-ha, if that matters XD ) and it can play it, but it generally freezes, means I can't do anything or normally close it. It plays the song alright, but nothing works anymore.
Edit: I saw you don't got any icon for your program... not like that would be the worst to worry about, but I made an ico which has an  image for the sizes 32x32, 24x24, 16x16 and 8x8, since it changes it's size depending on its own exe-icon, the window-icon etc... give me a call on MSN or send an email if you want me to send you. :)
Title: Re: MP3 PLAYER(i totally redid it)
Post by: Pyro on June 03, 2006, 05:19:36 pm
=/ This thing is fk'ed up >_>

(http://www.skeetendo.com/uploads/wtf.PNG)

And it eats up my memory like crazy o_o
Title: Re: MP3 PLAYER(i totally redid it)
Post by: gm112 on June 03, 2006, 07:11:19 pm
@Pyro: Check if your graphic drivers are up to date.

Update!
----------------
-Gui Redone-Helios
-Code Cleaned up and optimised-Helios
-Memory Leak discovered and fixed-Helios
-Mouse now hovers over the buttons-Helios
-Repeat now functions as it should-Helios
-Added a nice icon ^___^-Gm112
-----------------
Helios has jumped in and decided to help me out with the messy code of mine =P. Thank him. This mp3 player is mer completed.
linky!: http://www.savefile.com/files/8425126

When you want repeat besure to hit the button and reload the song.

GIVE CREDIT TO FOX FOR MAKING THE ICON

Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved