0
1
mirror of https://github.com/radio95-rnt/rds95.git synced 2026-02-26 20:33:53 +01:00

some adjustments and smart detections

This commit is contained in:
2025-12-28 16:01:15 +01:00
parent c56e932c93
commit 6552d3dc9d
5 changed files with 86 additions and 47 deletions

View File

@@ -401,6 +401,11 @@ int lua_set_rds_udg2(lua_State *localL) {
return 0;
}
int lua_get_available_rds_streams(lua_State *localL) {
lua_pushinteger(localL, mod->num_streams);
return 1
}
void init_lua(RDSModulator* rds_mod) {
static int mutex_initialized = 0;
mod = rds_mod;
@@ -470,6 +475,7 @@ void init_lua(RDSModulator* rds_mod) {
lua_register(L, "set_rds_streams", lua_set_rds_streams);
lua_register(L, "get_rds_streams", lua_get_rds_streams);
lua_register(L, "get_available_rds_streams", lua_get_available_rds_streams);
lua_register(L, "set_rds_grpseq", lua_set_rds_grp_sqc);
lua_register(L, "get_rds_grpseq", lua_get_rds_grp_sqc);