filenames end in raw, and finish audio convert script
This commit is contained in:
parent
01f8beea54
commit
a5871e107a
2 changed files with 7 additions and 1 deletions
|
@ -118,6 +118,7 @@ struct sockin {
|
|||
}
|
||||
};
|
||||
|
||||
char fnbuf[80];
|
||||
struct audio_sockin : public sockin {
|
||||
int leftover;
|
||||
int a_fd;
|
||||
|
@ -132,7 +133,8 @@ struct audio_sockin : public sockin {
|
|||
a_fd = -1;
|
||||
|
||||
if (f_saveaudio) {
|
||||
a_fd = open(names[id], O_WRONLY | O_APPEND | O_CREAT, S_IRWXU | S_IROTH);
|
||||
sprintf(fnbuf, "%s.raw", names[id]);
|
||||
a_fd = open(fnbuf, O_WRONLY | O_APPEND | O_CREAT, S_IRWXU | S_IROTH);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
4
acatcher/aconvert
Normal file → Executable file
4
acatcher/aconvert
Normal file → Executable file
|
@ -1,2 +1,6 @@
|
|||
#!/bin/sh
|
||||
# Signed 16 bit Little Endian, Rate 22050 Hz, Mono
|
||||
INFILE="$1"
|
||||
OUTFILE="$INFILE.wav"
|
||||
#sox -r 44100 -e unsigned -b 8 -c 1 <RAW_FILE> <TARGET_FILE>
|
||||
sox -r 22050 -e signed -b 16 -L -c 1 "$1" "$OUTFILE"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue