Fix flush glitch, add artwork request to metadata set.

This commit is contained in:
Mike Brady
2015-03-18 21:02:49 +00:00
parent decc44c55f
commit c2383d4942
7 changed files with 3315 additions and 12 deletions
+9
View File
@@ -395,6 +395,15 @@ void command_stop(void) {
}
}
// this is for reading an unsigned 32 bit number, such as an RTP timestamp
uint32_t uatoi(const char *nptr) {
uint64_t llint = atoll(nptr);
uint32_t r = llint;
return r;
}
// Given a volume (0 to -30) and high and low attenuations available in the mixer in dB, return an attenuation depending on the volume and the function's transfer function
// See http://tangentsoft.net/audio/atten.html for data on good attenuators.
// We want a smooth attenuation function, like, for example, the ALPS RK27 Potentiometer transfer functions referred to at the link above.