fix vorbis as well

This commit is contained in:
philippe44
2023-04-06 22:45:40 -07:00
parent b4af1e7bef
commit d2b8edce60
6 changed files with 345 additions and 225 deletions

View File

@@ -443,11 +443,11 @@ void cspotPlayer::runTask() {
CSPOT_LOG(info, "disconnecting player %s", name.c_str());
}
// we want to release memory ASAP and fore sure
// we want to release memory ASAP and for sure
centralAudioBuffer.reset();
ctx.reset();
token.clear();
// update volume when we disconnect
cJSON *config = config_alloc_get_cjson("cspot_config");
cJSON_DeleteItemFromObject(config, "volume");