Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@sudomain
Copy link

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 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.

Steps to reproduce


/sdcard/TODO_audio_files $ termux-microphone-record -f fileA
Recording started: /storage/emulated/0/TODO_audio_files/fileA                                             Max Duration: 15:00                                                                                      

/sdcard/TODO_audio_files $ termux-microphone-record -f fileB

Recording already in progress!
/sdcard/TODO_audio_files $ termux-microphone-record -q
Recording finished: /storage/emulated/0/TODO_audio_files/fileB
/sdcard/TODO_audio_files $ ls
fileA

Expected behavior

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
@sudomain 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant