summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tangara/lua/property.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tangara/lua/property.cpp b/src/tangara/lua/property.cpp
index 847bbe15..3302172f 100644
--- a/src/tangara/lua/property.cpp
+++ b/src/tangara/lua/property.cpp
@@ -265,6 +265,22 @@ static void pushTrack(lua_State* L, const audio::TrackInfo& track) {
lua_pushliteral(L, "encoding");
lua_pushstring(L, codecs::StreamTypeToString(track.encoding).c_str());
lua_settable(L, -3);
+
+ lua_pushliteral(L, "uri");
+ lua_pushstring(L, track.uri.c_str());
+ lua_settable(L, -3);
+
+ lua_pushliteral(L, "sample_rate");
+ lua_pushinteger(L, track.format.sample_rate);
+ lua_settable(L, -3);
+
+ lua_pushliteral(L, "num_channels");
+ lua_pushinteger(L, track.format.num_channels);
+ lua_settable(L, -3);
+
+ lua_pushliteral(L, "bits_per_sample");
+ lua_pushinteger(L, track.format.bits_per_sample);
+ lua_settable(L, -3);
}
static void pushDevice(lua_State* L,