Wolgamonox / koth-ping-pong-app

0 stars 0 forks source link

Add sound pack managment #8

Open Wolgamonox opened 8 months ago

Wolgamonox commented 8 months ago

New feature: Sound packs

Description:

Instead of having predefined sound for the game start, game stop, or for the king change, it would be nice to have the possibility to have custom sound packs. These sound packs would need to have a defined structure, that respect some requirements such as sound duration and that all the sounds are present. A sound pack could then simply be a .zip file that contains all the .mp3 files corresponding to each sound, named accordingly.

Each sound should last between 2 and 10 seconds.

A sound pack structure could look like this:

sound_pack_name.zip
├── game_start.mp3
├── king_change.mp3
├── pause.mp3
├── resume.mp3
├── overtime_start.mp3
└── game_end.mp3

Tasks

Wolgamonox commented 8 months ago

For storing the loaded sound packs, use path_provider and the getApplicationSupportDirectory function.

Wolgamonox commented 8 months ago

For the zip files, use package archive