From b240939f37459606c09e8f9d702249e174513c16 Mon Sep 17 00:00:00 2001 From: Alex K <arkarkark@users.noreply.github.com> Date: Mon, 13 May 2024 20:41:39 -0700 Subject: [PATCH] small fixes playfile.md: prepend and volume level comment fix to use prepend rather than append fix comment for volume parameter example --- lua-api-reference/audio-sound/playfile.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua-api-reference/audio-sound/playfile.md b/lua-api-reference/audio-sound/playfile.md index be2f748..114b979 100644 --- a/lua-api-reference/audio-sound/playfile.md +++ b/lua-api-reference/audio-sound/playfile.md @@ -13,9 +13,9 @@ description: Play a file from the SD card * `filename` (string) full path to wav file (i.e. “/SOUNDS/en/system/tada.wav”) - Introduced in 2.1.0: If you use a relative path, the current language is appended + Introduced in 2.1.0: If you use a relative path, the current language is prepended - to the path (example: for English language: `/SOUNDS/en` is appended) + to the path (example: for English language: `/SOUNDS/en` is prepended) * `volume` (number): (1..5) override radio settings Wav volume for the duration of file. Omitting the parameter uses radio settings Wav volume ## Return value @@ -25,7 +25,7 @@ none ## Examples ```lua -playFile("armed.wav", 5) -- play file armed.wav, use Wav volume 2 +playFile("armed.wav", 5) -- play file armed.wav, use Wav volume 5 playFile("armed.wav", 1) -- play file armed.wav, use Wav volume 1 playFile("armed.wav") -- play file armed.wav, use radio settings Wav volume ```