# UPrimeDialogForgeAudioComponent

`UPrimeDialogForgeAudioComponent` belongs to the PrimeDialog Forge runtime module.

Consequat lorem reprehenderit aliqua adipiscing fugiat cillum ex dolor aliquip voluptate commodo. Ipsum voluptate et amet pariatur ex aliquip minim. Ullamco dolore reprehenderit excepteur duis cillum quis in lorem fugiat quis sed commodo velit enim.

## Declaration

```
Blueprint Setup:
1. Open your Actor Blueprint
2. Add Component > search "My Plugin Component"
3. In the Details panel, set:
   - Update Interval: 0.1
   - Auto Activate: true
   - Max Instances: 50
4. Connect the OnStateChanged event to your handler
5. Compile and Save the Blueprint
```

## Members

| Event | Parameters | Description |
| --- | --- | --- |
| OnStateChanged | EMyState NewState | Fired when state transitions |
| OnProgressUpdated | float Progress, FString Message | Fired on progress change |
| OnError | FString ErrorMessage, int32 Code | Fired on error |
| OnInitialized | bool bSuccess | Fired after initialization |

## Example

```cpp
UCLASS(ClassGroup=(Custom), meta=(BlueprintSpawnableComponent))
class PRIME_DIALOG_FORGE_API UMyComponent : public UActorComponent
{
    GENERATED_BODY()

public:
    UMyComponent();

    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Settings")
    float UpdateInterval = 0.1f;

    UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Settings")
    bool bAutoActivate = true;

    UFUNCTION(BlueprintCallable, Category = "PrimeDialog Forge")
    void SetConfiguration(const FMyConfig& Config);

protected:
    virtual void BeginPlay() override;
    virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;

private:
    FMyConfig CurrentConfig;
    float TimeSinceLastUpdate = 0.0f;
};
```

> **Note:** This feature is available starting from version 2.0. Older versions use a different API.