> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionMsgBeep

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/Other/Functions/CAPLfunctionMsgBeep.md)

[CAPL Functions](../../CAPLfunctions.md) » [General](../CAPLGeneralStartPage.md) » [Function Overview](../CAPLfunctionsGeneralOverview.md) » msgBeep

# msgBeep

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

**Note:** If the specified sound type (e.g. MB\_ICONHAND) cannot be played, the standard beep (computer speaker) is used. The beep must be activated on the Windows panel to do this!

## Function Syntax

```plaintext theme={null}
void msgBeep (long soundType);
```

## Description

The `msgBeep` function plays back a sound predefined by the Windows system. It replaces the previous beep function.

## Parameters

* **soundType**: Integer for the predefined sound. Specifically these are:
  * `0`: MB\_ICONASTERISK SystemAsterisk
  * `1`: MB\_ICONEXCLAMATION SystemExclamation
  * `2`: MB\_ICONHAND SystemHand
  * `3`: MB\_ICONQUESTION SystemQuestion
  * `4`: MB\_OK SystemDefault
  * `5`: Standard beep using the computer speaker (default)

## Return Values

—

## Example

```c theme={null}
void sound() {
// Standard signal question
msgBeep (3);
}
```

[write](CAPLfunctionWrite.md) • [writeToLog](CAPLfunctionWriteToLog.md)
