Compare commits

..

No commits in common. "02ab142d9602b601e1a729d24f9716a249dc6f4e" and "25824d472893730196cca529a29780828d053f6f" have entirely different histories.

3 changed files with 6 additions and 7 deletions

View File

@ -17,7 +17,7 @@ See `docs/rg35xx-plus.md` for target device details, boot chain, and deployment.
```sh ```sh
make # native build — uses pkg-config make # native build — uses pkg-config
make clean # remove build artifacts make clean # remove build artifacts
./build/sdlamp2 audio # run with the repo's audio directory ./build/sdlamp2 [audio_directory]
``` ```
Building for the arm64 target device via the Docker container (from the `docker-arm64/` directory): Building for the arm64 target device via the Docker container (from the `docker-arm64/` directory):

View File

@ -43,11 +43,6 @@ This document specifies the functional requirements for an SDL2 based media play
## 6. Changelog ## 6. Changelog
### 2026-02-14 — Softer background, remove panel divider
- **Background color**: Changed from white (`#FFFFFF`) to a medium gray (`#979797`) for a gentler appearance.
- **Remove divider**: Removed the vertical separator line between the controls panel and the album art.
### 2026-02-14 — Fix residual audio on cassette switch ### 2026-02-14 — Fix residual audio on cassette switch
- **Clear device queue on switch**: `switch_file()` now calls `SDL_ClearQueuedAudio()` after pausing the audio device, preventing a brief snippet of the previous cassette from playing when the new one starts. - **Clear device queue on switch**: `switch_file()` now calls `SDL_ClearQueuedAudio()` after pausing the audio device, preventing a brief snippet of the previous cassette from playing when the new one starts.

View File

@ -915,7 +915,7 @@ int main(int argc, char** argv) {
} }
/* --- Rendering --- */ /* --- Rendering --- */
SDL_SetRenderDrawColor(renderer, 0x97, 0x97, 0x97, 0xFF); SDL_SetRenderDrawColor(renderer, 0xFF, 0xFF, 0xFF, 0xFF);
SDL_RenderClear(renderer); SDL_RenderClear(renderer);
/* Album art (right panel, centered, aspect-preserving) */ /* Album art (right panel, centered, aspect-preserving) */
@ -949,6 +949,10 @@ int main(int argc, char** argv) {
SDL_RenderFillRect(renderer, &fill); SDL_RenderFillRect(renderer, &fill);
} }
/* Separator line between left panel and right panel */
SDL_SetRenderDrawColor(renderer, 0xC0, 0xC0, 0xC0, 0xFF);
SDL_RenderDrawLine(renderer, 200, 10, 200, 470);
/* Buttons */ /* Buttons */
SDL_RenderCopy(renderer, controls_texture, &prev_sprite, &prev_btn); SDL_RenderCopy(renderer, controls_texture, &prev_sprite, &prev_btn);
SDL_RenderCopy(renderer, controls_texture, &rewind_sprite, &rewind_btn); SDL_RenderCopy(renderer, controls_texture, &rewind_sprite, &rewind_btn);