> As mentioned earlier in this thread, that only works with a reset.
this has
> to lower and then restore the volume while the application runs....any
other
> ideas?

ftp://ftp.marginsoftware.com/pub/software/palmos/AudioTest.zip

Install both files (one is a utility library).  This application works
perfectly well on my Sony Clie NX70V/U (OS5) handheld.  The application
uses the following lines to set the system volume:

case ctlSelectEvent:
  switch ( eventP->data.ctlSelect.controlID ) {
    case VolSlider:
      SndSetDefaultVolume (NULL, &eventP->data.ctlSelect.value, NULL);
      break;

    default:
      break;
  }
  break;

It took me five minutes to track down the function needed - and though
it says to never call this function in PalmOS 5, it seems to work.
Another 5 minutes of researching to work out how to use a slider, and
you have a test application.  I suggest searching through the API or
Companion for the answer to questions.  That combined with performing
quick tests finds solutions 9 times out of 10.

Matthew Bevan, Margin Software
 - Re-inventing the wheel, every time.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to