--- a/src/mediaserver/cdplugins/plgwithslave.cxx
+++ b/src/mediaserver/cdplugins/plgwithslave.cxx
@@ -357,6 +357,10 @@
             ss = decoded[i].get("res:samplefreq", "").asString();
             if (!ss.empty()) {
                 song.samplefreq = atoi(ss.c_str());
+            }
+            ss = decoded[i].get("res:bitsPerSample", "").asString();
+            if (!ss.empty()) {
+                song.bitsPerSample = atoi(ss.c_str());
             }
             ss = decoded[i].get("res:channels", "").asString();
             if (!ss.empty()) {