怎样使主板发声,我用beep在2k下正常,在98,me下不正常,有其他方法么?
我听说可以用中断,怎么用,请详细介绍!

解决方案 »

  1.   

    BOOL Beep(
      DWORD dwFreq,      // sound frequency
      DWORD dwDuration   // sound duration
    );
      

  2.   

    不是不出声,是太小了,听不见我也遇到过这样的问题用TC20写了一个测试,也还是不行
    在2K下声音很大,在98和ME下就太小了,小得几乎听不见关注中...
      

  3.   

    MessageBeep
    The MessageBeep function plays a waveform sound. The waveform sound for each sound type is identified by an entry in the [sounds] section of the registry. BOOL MessageBeep(
      UINT uType   // sound type
    );
     
    Parameters
    uType 
    Specifies the sound type, as identified by an entry in the [sounds] section of the registry. This parameter can be one of the following values: Value Sound 
    0xFFFFFFFF Standard beep using the computer speaker 
    MB_ICONASTERISK SystemAsterisk 
    MB_ICONEXCLAMATION SystemExclamation 
    MB_ICONHAND SystemHand 
    MB_ICONQUESTION SystemQuestion 
    MB_OK SystemDefault