|
a/src/mediaserver/cdplugins/plgwithslave.cxx |
|
b/src/mediaserver/cdplugins/plgwithslave.cxx |
|
... |
|
... |
355 |
song.bitrate = atoi(ss.c_str());
|
355 |
song.bitrate = atoi(ss.c_str());
|
356 |
}
|
356 |
}
|
357 |
ss = decoded[i].get("res:samplefreq", "").asString();
|
357 |
ss = decoded[i].get("res:samplefreq", "").asString();
|
358 |
if (!ss.empty()) {
|
358 |
if (!ss.empty()) {
|
359 |
song.samplefreq = atoi(ss.c_str());
|
359 |
song.samplefreq = atoi(ss.c_str());
|
|
|
360 |
}
|
|
|
361 |
ss = decoded[i].get("res:bitsPerSample", "").asString();
|
|
|
362 |
if (!ss.empty()) {
|
|
|
363 |
song.bitsPerSample = atoi(ss.c_str());
|
360 |
}
|
364 |
}
|
361 |
ss = decoded[i].get("res:channels", "").asString();
|
365 |
ss = decoded[i].get("res:channels", "").asString();
|
362 |
if (!ss.empty()) {
|
366 |
if (!ss.empty()) {
|
363 |
song.channels = atoi(ss.c_str());
|
367 |
song.channels = atoi(ss.c_str());
|
364 |
}
|
368 |
}
|