Skip to content

Commit

Permalink
Updating module architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
ZILtoid1991 committed Jun 13, 2024
1 parent 4ac8c34 commit cad23b4
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 84 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -719,4 +719,14 @@ public class DelayLines : AudioModule {
override public string readParam_string(uint presetID, uint paramID) nothrow {
return string.init; // TODO: implement
}
/**
* Sets the master level of the module or the module's channel.
* Params:
* level = the new audio level, linear, between 0.0 and 1.0.
* channel = the given channel, or -1 if module master level is needed.
* Returns: The new level, or NaN if either channel number or value is out of bounds
*/
public override float setMasterLevel(float level, int channel = -1) @nogc nothrow {
return float.nan;
}
}
10 changes: 10 additions & 0 deletions pixelperfectengine/src/pixelperfectengine/audio/modules/pcm8.d
Original file line number Diff line number Diff line change
Expand Up @@ -1426,4 +1426,14 @@ public class PCM8 : AudioModule {
public override string readParam_string(uint presetID, uint paramID) nothrow {
return null;
}
/**
* Sets the master level of the module or the module's channel.
* Params:
* level = the new audio level, linear, between 0.0 and 1.0.
* channel = the given channel, or -1 if module master level is needed.
* Returns: The new level, or NaN if either channel number or value is out of bounds
*/
public override float setMasterLevel(float level, int channel = -1) @nogc nothrow {
return float.nan;
}
}
Loading

0 comments on commit cad23b4

Please sign in to comment.