Create tone-test outputs exclusively

This commit is contained in:
Brandon McGinty (chatgpt)
2026-08-10 11:25:08 -04:00
committed by Brandon McGinty
parent 65489fd367
commit 655a109ce8
+1 -1
View File
@@ -82,7 +82,7 @@ type AudioFileSaver struct {
//
// ffmpeg -f s16le -ar 48000 -ac 2 -i <file> output.wav
func NewAudioFileSaver(path string) (*AudioFileSaver, error) {
f, err := os.Create(path)
f, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0600)
if err != nil {
return nil, err
}