2026-03-01 02:55:12 +01:00
|
|
|
/*
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2026-02-28 16:00:29 +01:00
|
|
|
package org.openautonomousconnection.luascript.hosts;
|
|
|
|
|
|
2026-03-01 02:55:12 +01:00
|
|
|
import org.openautonomousconnection.luascript.type.AudioValue;
|
|
|
|
|
|
2026-02-28 16:00:29 +01:00
|
|
|
import java.io.File;
|
|
|
|
|
|
2026-03-01 02:55:12 +01:00
|
|
|
/**
|
|
|
|
|
* Abstract audio service host
|
|
|
|
|
*/
|
2026-02-28 16:00:29 +01:00
|
|
|
public interface AudioHost {
|
|
|
|
|
|
2026-03-01 02:55:12 +01:00
|
|
|
/**
|
|
|
|
|
* Load an audio file as a LuaValue (AudioValue type)
|
|
|
|
|
* @param audioFile audio media file
|
|
|
|
|
* @return reference object to media
|
|
|
|
|
*/
|
|
|
|
|
AudioValue load(File audioFile);
|
2026-02-28 16:00:29 +01:00
|
|
|
|
|
|
|
|
}
|