Great application! I know that when you click the center button, the timer disappears, but is there a way to have the brightness go to 0% or the backlight to shut off when you click the center button? I'm thinking of something similar to the way the backlight shuts off while you are listening to music and not touching any buttons.
Any chance this could be upgraded to work with 3.0?
Edit: Been trying to tweak it myself
I have removed the .Queue from the mediaplayer interface commands but I am still having trouble understanding why the program crash when loading the font file
font = Content.Load<SpriteFont>("Alba");
Last edited by madskier8806; 09-18-2008 at 09:23 PM.
Reason: my own tweaks
hi, im really new to this. but when i try to deploy this program it says things like these:
1 'Microsoft.Xna.Framework.Media.MediaQueue' does not contain a definition for 'MoveNext' and no extension method 'MoveNext' accepting a first argument of type 'Microsoft.Xna.Framework.Media.MediaQueue' could be found (are you missing a using directive or an assembly reference?)
2 'Microsoft.Xna.Framework.Media.MediaQueue' does not contain a definition for 'MovePrevious' and no extension method 'MovePrevious' accepting a first argument of type 'Microsoft.Xna.Framework.Media.MediaQueue' could be found (are you missing a using directive or an assembly reference?)
3 'Microsoft.Xna.Framework.Media.MediaQueue' does not contain a definition for 'MoveNext' and no extension method 'MoveNext' accepting a first argument of type 'Microsoft.Xna.Framework.Media.MediaQueue' could be found (are you missing a using directive or an assembly reference?)
4 'Microsoft.Xna.Framework.Media.MediaQueue' does not contain a definition for 'MoveNext' and no extension method 'MoveNext' accepting a first argument of type 'Microsoft.Xna.Framework.Media.MediaQueue' could be found (are you missing a using directive or an assembly reference?)
5 'Microsoft.Xna.Framework.Media.MediaQueue' does not contain a definition for 'MoveNext' and no extension method 'MoveNext' accepting a first argument of type 'Microsoft.Xna.Framework.Media.MediaQueue' could be found (are you missing a using directive or an assembly reference?)
6 'Microsoft.Xna.Framework.Media.MediaQueue' does not contain a definition for 'MoveNext' and no extension method 'MoveNext' accepting a first argument of type 'Microsoft.Xna.Framework.Media.MediaQueue' could be found (are you missing a using directive or an assembly reference?)
Well the fix is to go back into the code find the lines were the Media interface is called and remove the ".Queue"
BUT, even with that done the app will deploy but it will crash because the new framework doesnt want to load the Alba file. I dont know why, I know nothing about programming with this language. I only know how to run a debug and read code.
Hopefully LedZepp will have a fix for this soon. I really really miss the sleep timer
Well after all the excitement that I had fixed the program, I went to play an audiobook (stored as a podcast) and fall asleep to it and found that I was forced to select music from my library before the timer would start and therefore not allowing me to continue to play the book since you can only select from your "music" library. Before 3.0 I would start up my audiobook from the podcasts then start the sleep timer app, set my time and the clock would roll. 3.0 broke that also
So, I am releasing another hotfix for the sleep timer app. This only will apply to those who want to play podcasts and the new audiobooks with the sleep timer app. This hotfix forces the timer to start after you input the time, REGARDLESS if you have anything playing. To select something to play, simply hit the back button. But this allows podcasts and audiobooks to work with the sleep timer.
And as an added bonus I believe that I have found a way so that when the timer is up, it will bookmark your position in the podcast/audiobook, before it restarts.
Enjoy! Again all Credit to LedZepp for the original code Download
Last edited by madskier8806; 09-25-2008 at 09:33 PM.
Reason: clarifying
Thank you, thank you! I just got my Zune about 3 weeks ago to support my audiobook addiction and was disappointed that there wasn't a sleep timer. I have to say that I jumped through hoops to get this installed (you can only get the XNA 3.0 Beta version now and I didn't think to look at the end of the thread for an update right away...many hours of jacking around before realizing that madskier8806 had posted a hotfix). I haven't tried it yet and I am full of nervous excitement...lol! Anyways, thanks LedZepp for the original code and thanks MadSkier8806 for the update! You are truly doing a community service with this code!
I am almost finished a new version of this program and I will distribute it shortly, thanks to ledzepp. The main thing is it incorporates the zune guide and a flashlight into it.
Do you reckon you could help out myself and all my alarm clock-needing buddies in need and maybe switch around your version of LedZepp's code (big ups!) and make it so that it will play music after a certain time? I don't know about the other guys and gals checking the Zune Alarm Clock thread daily, but I'm losing valuable time, letting my circadian rhythms decide when to wake me up. Please help, I'm not sure just how difficult or easy it would be to do, and i'm sure we'd lose a bit of functionality from the old version, but any amount of success would be greatly appreciated.
Thanks man
ps. ideas: would it be possible to just have it as a timed-volume control, if that makes sense? like, open a playlist through the prog, start it playing and then the program sets output to 0 until the timer goes off, and the music kicks in. like i said, i will appreciate any and all you can give to this
ERROR MESSAGE: "An unhandled exception of type 'System.IndexOutOfRangeException' occurred in SleepTimer.exe"
I don't know why the app does not let me choose my music. After I get to the part "choose the music to play", when I press the right button to the next selection which is random, then unknown artists and after that my zune is rebooted for no reason if i keep pressingthe right button. Can some one help me with this please thx
You either have a foreign character in your artist list or you chose a DRM-protected song. If it happens while you're scrolling through it's the foreign character thing. Do you have any of those?