mirror of
https://github.com/cgzirim/seek-tune.git
synced 2025-12-17 17:04:22 +00:00
Add fallbacks to recordData items
This commit is contained in:
parent
8b287abf42
commit
5444d33bd0
1 changed files with 3 additions and 3 deletions
|
|
@ -178,9 +178,9 @@ function App() {
|
|||
|
||||
const recordData = {
|
||||
audio: rawAudio,
|
||||
channels: audioConfig.channelCount,
|
||||
sampleRate: audioConfig.sampleRate,
|
||||
sampleSize: audioConfig.sampleSize,
|
||||
channels: audioConfig.channelCount || 1,
|
||||
sampleRate: audioConfig.sampleRate || 44100,
|
||||
sampleSize: audioConfig.sampleSize || 16,
|
||||
};
|
||||
|
||||
if (sendRecordingRef.current) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue