audio: do not use pacat on copying audio_in.raw

This commit is contained in:
Dmitry Fedorov 2020-06-24 14:51:46 +03:00
parent fd7d1267d7
commit 79a05dcceb
No known key found for this signature in database
GPG Key ID: C61C7F61C4D85F8D

View File

@ -447,9 +447,8 @@ class TC_00_AppVMMixin(object):
sfreq = 4400
# generate signal
audio_in = np.sin(2*np.pi*np.arange(44100)*sfreq/44100)
self.loop.run_until_complete(self.testvm1.run_for_stdio(
'pacat --raw --rate=44100 --channels=1 \
--format=float32le > audio_in.raw',
self.loop.run_until_complete(
self.testvm1.run_for_stdio('cat > audio_in.raw',
input=audio_in.astype(np.float32).tobytes()))
local_user = grp.getgrnam('qubes').gr_mem[0]
with tempfile.NamedTemporaryFile() as recorded_audio: