20 Jun '13 - 12:00 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: USB-powered harddrive sleeps, channel jammed 10s  (Read 1043 times)
Rakham01
Posts: 15


« on: 30 Jul '09 - 11:31 »
Reply with quoteQuote

I'm using USB-powered external harddrive for Mp3-files storage and play them with
"Call BASS_ChannelPlay(filehandle, BASSTRUE)". It works just fine, until harddrive "sleeps" after
about a minute being unused and then playing is jammed for a while. Elapsed time will go
back and forward within one second time period and after 10 s it continues normally, when harddrive
is awake again. I'm trying to find a way to solve this problem in a code, how to catch this situation (OK, that can be done by comparing elapsed time every x second time period) and especially, how to recover from it.
Any suggestions??? Well, a timer that refreshes harddrive by scanning directory tree every 30 seconds would probably help, but a simple "Channel-Refresh" command should be fine, is there is any ?  Grin
Logged
MoonStar
Guest
« Reply #1 on: 30 Jul '09 - 13:21 »
Reply with quoteQuote

Have you ever try to disable turning off harddisks by windows OS
you can do this by setting the TURN OF HARDDISK = NEVER  property in Monitor Power TAB in the Secreen Saver Menu for windows xp?

the easiest solution for your case that i can recommend Smiley Grin

Logged
Rakham01
Posts: 15


« Reply #2 on: 31 Jul '09 - 12:04 »
Reply with quoteQuote

That setting was already on: Turn off hard disks - NEVER. I solved that problem by using 1 minute timer, which
writes a small one line text file to root directory of a hard disk. Scanning the whole root directory didn't wake up hard disk at all,
but even that small write procedure is enough to keep hard disk awake. Timer is SET ON as soon as playing stops and SET OFF when playing starts. That text file is deleted (of course) when player application is closed. Thank's anyway !
Logged
saga
Posts: 1393


« Reply #3 on: 31 Jul '09 - 12:16 »
Reply with quoteQuote

Probably there's also a setting in your BIOS to turn off hard drives. I'd definitly search for it, as turning off hard drives that often does not really save power, but it decreases their lifetime definitetly.
Logged
Rakham01
Posts: 15


« Reply #4 on: 31 Jul '09 - 12:34 »
Reply with quoteQuote

Is there really any BIOS settings for external USB-powered hard disk??? Before, when I used hard disk with normal power adapter, there wasn't any problems with playing due to continuous power supply and besides, laptops internal hard disk
never sleeps. If there is any solution like you are trying to suggest, I'll use it instantly  Smiley
Logged
saga
Posts: 1393


« Reply #5 on: 31 Jul '09 - 13:41 »
Reply with quoteQuote

Well I don't think that there are extra settings of external drives, but the BIOS normally has settings for hard drives in general. You could have a look there but I can't guarantee anything.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines