Added Audio

This commit is contained in:
Tinglyyy
2026-03-01 02:55:12 +01:00
parent 2a1767ef74
commit 88ae3012f7
4 changed files with 103 additions and 4 deletions

View File

@@ -1,9 +1,28 @@
/*
* This code, and therefore this entire project, is licensed under
* the Open Autonomous Public License (OAPL) v1.0, or one that
* derives from that license.
* For more details, please refer to the LICENSE file.
*
* Copyright (c) 2026 Maple.
*/
package org.openautonomousconnection.luascript.hosts;
import org.openautonomousconnection.luascript.type.AudioValue;
import java.io.File;
/**
* Abstract audio service host
*/
public interface AudioHost {
void play(File audioFile);
/**
* Load an audio file as a LuaValue (AudioValue type)
* @param audioFile audio media file
* @return reference object to media
*/
AudioValue load(File audioFile);
}