- Status Closed
- Percent Complete
- Task Type Patches
- Category Operating System/Drivers
- Assigned To No-one
- Operating System Archos Recorder
- Severity Low
- Priority Very Low
- Reported Version
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#4902 - Work-in-progress PCM (wav) playback for archos
This patch contains a research plugin for integrating PCM playback into rockbox for Archos (Recorders and Ondios only, no player suppor possible, sorry).
It loads and plays (after adding it to viewers.config) 44.1 kHz WAV files.
Note that this is work in progress. The plugin fiddles with SCI0, so mp3 playback won't work afterwards, better reboot. WAV parameters are hardcoded for now. Data transfer to the MAS is done in a rather trivial software trasnfer loop, no DMA yet. No file buffering either, the disk is spinning all the time.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
First optimisation - leave out the MAS PCM buffer init (a bunch of zeroes) for smaller footprint & faster codec download.
Some code cleanup, use rockbox' mas_* functions where appropriate. Needs current cvs sources for the mas_writereg() fix.
Vastly extended the plugin:
- Simple playback engine. No more continuously spinning disk.
- Uses DMA. Works realtime on Ondio now.
- Ability to stop playback.
- Restores MAS for mp3 playback. No reboot necessary.
- Read parameters from WAV file. Plays 16bit PCM WAV files with all common samplerates, both mono and stereo.
- Better error handling and reporting
- Handles USB
The patch now also includes the necessary changes to viewers.config.
Further improvements:
- Properly apply all core sound settings (most settings are audiocodec features unaffected by the DSP code change, but the channel settings are a DSP feature)
- Also restore channel settings properly, for the same reason