Skip to content

Commit

Permalink
Updated audio library to play more MP3s
Browse files Browse the repository at this point in the history
Faster delivery of the cover image
  • Loading branch information
tueddy committed Nov 28, 2023
1 parent 1cc73ce commit 29b977c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## DEV-branch

* 28.11.2023: Updated audio library to play more MP3s, faster delivery of the cover image
* 25.11.2023: Save some cpu time in audio task by only updating the playtime statistics every 250ms
* 22.11.2023: Web-UI: Search for files feature #268
* 21.11.2023: New command CMD_TOGGLE_MODE to switch Normal => BT-Sink => BT-Source
Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extra_scripts =
pre:updateSdkConfig.py
pre:processHtml.py
lib_deps =
https://github.com/schreibfaul1/ESP32-audioI2S.git#5a1bd13
https://github.com/schreibfaul1/ESP32-audioI2S.git#9d1759e
https://github.com/madhephaestus/ESP32Encoder.git#9979722
https://github.com/knolleary/pubsubclient.git#2d228f2
https://github.com/peterus/ESP-FTP-Server-Lib#554959f
Expand Down
5 changes: 2 additions & 3 deletions src/Web.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1911,9 +1911,8 @@ static void handleCoverImageRequest(AsyncWebServerRequest *request) {

int imageSize = gPlayProperties.coverFileSize;
AsyncWebServerResponse *response = request->beginChunkedResponse(mimeType, [coverFile, imageSize](uint8_t *buffer, size_t maxLen, size_t index) -> size_t {
if (maxLen > 1024) {
maxLen = 1024;
}
// some kind of webserver bug with actual size available, reduce the len
maxLen = maxLen >> 1;

File file = coverFile; // local copy of file pointer
size_t leftToWrite = imageSize - index;
Expand Down
2 changes: 1 addition & 1 deletion src/revision.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once

#include "gitrevision.h"
constexpr const char softwareRevision[] = "Software-revision: 20231125-1-DEV";
constexpr const char softwareRevision[] = "Software-revision: 20231128-1-DEV";

0 comments on commit 29b977c

Please sign in to comment.