Err SndPlaySmfResource (UInt32 resType, Int16 resID,
SystemPreferencesChoice volumeSelector)

You'll have to figure out the resource database ID, chances are,
resType can be set to 0, and the third choice is a volume control,
and the settings are one of these:

prefSysSoundVolume
prefGameSoundVolume
prefAlarmSoundVolume

Hope that helps!
-Rus
>-----Original Message-----
>From: shay [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, August 03, 2000 2:10 AM
>To: Palm Developer Forum
>Subject: Re: midi sound - how ? (urgent)
>
>
>the volume is ok.
>i know that smfP is a pointer to the start of the midi file 
>(it written in
>the help), my question is how can i get the pointer to the 
>midi file (that
>is right now, an alarm in the system).
>i don't know how i reach it, and point to the alarm.
>
>thanks,
>shay
>
>"Nesse, Rustin" <[EMAIL PROTECTED]> wrote in message
>news:19676@palm-dev-forum...
>>
>> Well, if the volume isn't turned down, it might be done like this?
>>
>> error = SndPlaySmf( NULL, sndSmfCmdPlay, smfP, NULL, NULL,
>> NULL, false );
>>
>> Where smfP is a pointer to the start of your midi file.
>>
>> You should really look at the associated structures for those
>> options I
>> set as NULL, as the value right after smfP is a structure 
>that contains
>> values for setting the volume, and the others could come in 
>handy, too.
>>
>> -Rus

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

Reply via email to