Added GoZenSound and VideoControl
This commit is contained in:
parent
c5058f8b84
commit
f875d2ca0f
6 changed files with 107 additions and 1 deletions
14
addons/gde_gozen/GoZenAudio.cs
Normal file
14
addons/gde_gozen/GoZenAudio.cs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
using Godot;
|
||||
using System;
|
||||
|
||||
public partial class GoZenAudio : Resource
|
||||
{
|
||||
public static byte[] GetAudioData() => ClassDB.ClassCallStatic("GoZenAudio", "get_audio_data").AsByteArray();
|
||||
|
||||
public static byte[] CombineData(byte[] audio1, byte[] audio2) => ClassDB.ClassCallStatic("GoZenAudio",
|
||||
"combine_data", Variant.CreateFrom(audio1), Variant.CreateFrom(audio2)).AsByteArray();
|
||||
|
||||
public static byte[] ChangeDb(byte[] audio, float db) => ClassDB.ClassCallStatic("GoZenAudio", "change_db", Variant.CreateFrom(audio), Variant.CreateFrom(db)).AsByteArray();
|
||||
|
||||
public static byte[] ChangeToMono(byte[] audio) => ClassDB.ClassCallStatic("GoZenAudio", "change_to_mono", Variant.CreateFrom(audio)).AsByteArray();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue