cocos_add_audio_file
Add audio files (mp3/wav/ogg) to Cocos Creator projects by copying them to the resources folder and generating metadata for runtime loading.
Instructions
Copy an audio file (mp3/wav/ogg) into assets/resources/ + write meta.
The file is placed under resources/ so it can be loaded at runtime via resources.load(). Returns {path, rel_path, uuid}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| src_path | Yes | ||
| rel_path | No | ||
| uuid | No |