sd_i2s+sd_vs_v4

This commit is contained in:
e2002
2022-12-16 17:10:11 +03:00
parent a2ba963027
commit 4a68c16fef
10 changed files with 36 additions and 9 deletions

View File

@@ -124,7 +124,7 @@ void Player::setOutputPins(bool isPlaying) {
if(MUTE_PIN!=255) digitalWrite(MUTE_PIN, isPlaying?!MUTE_VAL:MUTE_VAL);
}
void Player::play(uint16_t stationId) {
void Player::play(uint16_t stationId, uint32_t filePos) {
display.putRequest(PSTOP);
setDefaults();
setOutputPins(false);
@@ -136,7 +136,7 @@ void Player::play(uint16_t stationId) {
display.putRequest(NEWSTATION);
netserver.requestOnChange(STATION, 0);
telnet.printf("##CLI.NAMESET#: %d %s\n", config.store.lastStation, config.station.name);
if (config.store.play_mode==PM_WEB?connecttohost(config.station.url):connecttoFS(SD,config.station.url)) {
if (config.store.play_mode==PM_WEB?connecttohost(config.station.url):connecttoFS(SD,config.station.url,filePos)) {
mode = PLAYING;
config.setTitle("");
netserver.requestOnChange(TITLE, 0);