You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If termux-microphone-record -f is run twice with different arguments, then termux-microphone-record -q will report it finished recording to a file that won't exist
#649
Open
sudomain opened this issue
Dec 21, 2023
· 0 comments
I first noticed this when trying to make timestamped recordings using: termux-microphone-record -f $(date '+%Y-%m-%d_%H-%M-%S') but I can reproduce it under other conditions:
If termux-microphone-record -f fileA is executed and then termux-microphone-record -f fileB, the user will get the error Recording already in progress! and only fileA is created. However when the user stops recording via termux-microphone-record -q, it will report Recording finished: /path/to/fileB, which won't exist. This is a minor cosmetic issue unless an user is parsing the output when stopping the recording.
termux-microphone-record -q should report the correct file
**Additional information**
* termux-api application version:
* termux-api package version (installed through apt):
* Android OS version:
* Device model:
Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=F_DROID
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=4741
TERMUX_IS_DEBUGGABLE_BUILD=0
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://packages.termux.org/apt/termux-main stable main
# x11-repo (sources.list.d/x11.list)
deb https://packages.termux.org/apt/termux-x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.39.6
Android version:
11
Kernel build information:
Linux localhost 4.4.223-g52750b8f2138-ab6846512 #1 SMP PREEMPT Fri Sep 18 09:49:34 UTC 2020 aarch64 Android
Device manufacturer:
Google
Device model:
Pixel 2
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.api versionCode:51
com.termux.boot versionCode:7
com.termux.widget versionCode:13
com.termux.window versionCode:15
The text was updated successfully, but these errors were encountered:
sudomain
changed the title
If termux-microphone-record -f is run twice woth different arguments, then termux-microphone-record -q will report it finished recording to a file that won't exist
If termux-microphone-record -f is run twice with different arguments, then termux-microphone-record -q will report it finished recording to a file that won't exist
Dec 21, 2023
Problem description
I first noticed this when trying to make timestamped recordings using:
termux-microphone-record -f $(date '+%Y-%m-%d_%H-%M-%S')
but I can reproduce it under other conditions:If
termux-microphone-record -f fileA
is executed and thentermux-microphone-record -f fileB
, the user will get the errorRecording already in progress!
and only fileA is created. However when the user stops recording viatermux-microphone-record -q
, it will reportRecording finished: /path/to/fileB
, which won't exist. This is a minor cosmetic issue unless an user is parsing the output when stopping the recording.Steps to reproduce
Expected behavior
termux-microphone-record -q should report the correct file
The text was updated successfully, but these errors were encountered: