How npid7/bcstm-player works
BCSTM-Player is a Nintendo 3DS audio player. Its visible entry flow starts the app loop, initializes the file browser at the SD-card root, and enters the initial UI stage; a background loop streams audio through a selectable decoder. The tree and README support additional BCWAV/BCSTM inspection, settings, themes, and localization branches, though their wiring is not shown in the excerpts. Those branches are included without speculative connections. Edges are limited to relationships visible in excerpts or explicitly documented capabilities.
Main entry points: main.cpp Player controller · app.cpp App loop · ctrff_decode.cpp CTRFF decoder · bcstmv2.cpp Legacy BCSTM decoder
Components 15
App runtime
- App loop
source/app.cpp - Player controller
source/main.cpp - Stage manager
source/stagemgr.cpp
Audio playback
- CTRFF decoder
source/bcstm/ctrff_decode.cpp - Legacy BCSTM decoder
source/bcstm/bcstmv2.cpp
Browse and inspect
- File browser
source/filebrowser.cpp - BCSTM inspector
source/inspector_view.cpp - BCWAV inspector
source/inspector_view_bcwav.cpp - Notifications
source/msg_handler.cpp
UI resources
- Player settings
source/config.hpp - Localization
source/lang.cpp - Themes
romfs/themes - Translations
romfs/lang
Other components
- 3DS user
- 3DS audio output
Connections 7
- 3DS user → App loop: starts
- App loop → Player controller: calls Main
source/app.cpp - Player controller → File browser: creates and scans
source/main.cpp - Player controller → Stage manager: sets stage
source/main.cpp - Player controller → CTRFF decoder: streams audio
source/main.cpp - CTRFF decoder → 3DS audio output: queues audio
source/bcstm/ctrff_decode.cpp - Legacy BCSTM decoder → 3DS audio output: queues audio
source/bcstm/bcstmv2.cpp