Added Audio
This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user