主题:  请教函数

有志男儿

职务:普通成员
等级:1
金币:0.0
发贴:25
#12002/8/13 8:03:14
哪儿有分别进行控制波形音量和软件合成器的音量的函数的应用,请各位师傅给予指教。



idea

职务:普通成员
等级:1
金币:1.0
发贴:289
#22002/8/13 8:24:21
budapi.u32中有对wav、mid等音量的控制函数。

SetVolume

Description:    baSetVolume sets the volume level of the sound card for wave files and audio CD.

Usage:    Result = baSetVolume( Device, Volume )

Arguments:    String, integer.
    Device is the device to change. Can be:

"master"    sets the master volume
    "wave"    sets the volume of wave and video files
    "cd"    sets the volume of audio CD playback
    "midi"    sets the volume of an external midi device
    "synth"    sets the volume of the internal FM synthesizer
    "master mute"    controls the master mute
    "wave mute"    controls the wave mute
    "cd mute"    controls the CD mute
    "synth mute"    controls the built-in synthesizer mute

Volume is the volume level to set. The volume level can be between 0 (silence) and 100 (maximum). For the mute devices, Volume can be either 1 for mute on, or 0 for mute off.

Returns:    Integer.
    Returns 1 if successful, else 0.

Examples:    Authorware:
    OK := baSetVolume( "cd" , 50 )