Krotos Modules 3
Loading...
Searching...
No Matches
krotos::RelativeSamplePathRewriteHook Class Reference

A hook for preset bundle loading that rewrites relative asset paths in a kwidget to be absolute to the a given directory. More...

#include <RelativeSamplePathRewriteHook.h>

Inheritance diagram for krotos::RelativeSamplePathRewriteHook:
krotos::PresetEventHook

Public Member Functions

void onKwidgetLoad (KwidgetLoadRequest &request, KwidgetLoadResponse &response) override
 Handles the Kwidget load event, potentially rewriting relative sample paths.
 
void onPresetLoad (PresetLoadRequest &request, PresetLoadResponse &response)
 Handles the preset load event, potentially rewriting relative sample paths.
 
- Public Member Functions inherited from krotos::PresetEventHook
virtual ~PresetEventHook ()=default
 Virtual destructor for proper cleanup of derived classes.
 

Detailed Description

A hook for preset bundle loading that rewrites relative asset paths in a kwidget to be absolute to the a given directory.

Member Function Documentation

◆ onKwidgetLoad()

void krotos::RelativeSamplePathRewriteHook::onKwidgetLoad ( KwidgetLoadRequest & request,
KwidgetLoadResponse & response )
overridevirtual

Handles the Kwidget load event, potentially rewriting relative sample paths.

Parameters
requestThe Kwidget load request.
responseThe response to be filled with the result of the operation.

Implements krotos::PresetEventHook.

◆ onPresetLoad()

void krotos::RelativeSamplePathRewriteHook::onPresetLoad ( PresetLoadRequest & request,
PresetLoadResponse & response )
virtual

Handles the preset load event, potentially rewriting relative sample paths.

Parameters
requestThe preset load request.
responseThe response to be filled with the result of the operation.

Implements krotos::PresetEventHook.


The documentation for this class was generated from the following files: