Speaker: Introduce audio playback
Introduce the Speaker class to play audio from the SD card when detecting tags. The only audio supported is WAV. Audio playback is handled via interrupts, so it might try to read from the SD card at the same time as the LCD class is trying to read new frames. Update the LCD animation code to temporarily disable audio interrupts while reading from the SD card.
This commit is contained in:
parent
caff96922e
commit
a7c2856ef6
6 changed files with 124 additions and 6 deletions
10
README.md
10
README.md
|
@ -45,7 +45,7 @@ se synchroniser avec le firmware et potentiellement le mettre à jour.
|
|||
- [x] LCD (base)
|
||||
- [x] LCD (animations)
|
||||
- [ ] LCD (UI)
|
||||
- [ ] Audio (sons de figurines)
|
||||
- [x] Audio (sons de figurines)
|
||||
- [ ] Audio (sons d'UI)
|
||||
- [ ] Audio (gain ?)
|
||||
- [ ] Communication avec logiciel
|
||||
|
@ -81,7 +81,7 @@ détaillés ici.
|
|||
|
||||
## Structure de fichiers
|
||||
|
||||
Les fichiers sur la carte SD sont structurés comme suit :
|
||||
Les fichiers sur la carte SD sont structurés comme suit (**notez les majuscules**) :
|
||||
```
|
||||
/
|
||||
├── RANDONNEE/
|
||||
|
@ -91,16 +91,16 @@ Les fichiers sur la carte SD sont structurés comme suit :
|
|||
│ │ ├── 02
|
||||
│ │ ├── ..
|
||||
│ │ └── XX
|
||||
│ └── audio.wav
|
||||
│ └── ENTRY.WAV
|
||||
├── RESTO/
|
||||
│ ├── ANIM/
|
||||
│ │ └── ..
|
||||
│ └── audio.wav
|
||||
│ └── ENTRY.WAV
|
||||
├── .../
|
||||
└── SYS/
|
||||
├── ANIM*/
|
||||
├── ../
|
||||
└── *.wav
|
||||
└── *.WAV
|
||||
```
|
||||
|
||||
Tous les fichiers liés à une figurine en particulier doivent être placés dans un
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue