ok, the main problem is resetscreensaver() resetting the spindowntime. when playing a file from a networkconnection the spindowntime is set to 0 which should activate the spindown but the resetscreensaver kicks in first and resets that value.
so first step is removing the line
Quote:m_dwspindowntime=timegettime();
from capplication::resetscreensaver(). as far as i can tell it is of no use anyway 'cause the same thing is being done by spinhd() (which is where it should be).
the second thing i did was changing, in capplication::playfile, the line
Quote:if ( !cutil::ishd(m_strcurrentfile) )
into
Quote:if ( !cutil::ishd(m_strcurrentfile) && cutil::isvideo(m_strcurrentfile) )
this only (immediately) spins down the harddisk when playing a video, not when playing music (so it doesn't do constant spinup/spindown with each song). don't know what happens with shoutcaststreams yet after changing this...
the harddisk will offcourse still spin down after the spindown time setting when playing music.
it doesn't seem to work the same way with dvd's, maybe it thinks it's on the harddisk or that dvd's aren't video? have to look at that some other time.