parent
ee4bc1e9c1
commit
3732bf11cf
|
@ -365,7 +365,8 @@ export function recordTracks(indexes: number[], deviceId: string) {
|
||||||
|
|
||||||
// Stop recording and download the wav
|
// Stop recording and download the wav
|
||||||
await mediaRecorderService?.stopRecording();
|
await mediaRecorderService?.stopRecording();
|
||||||
mediaRecorderService?.downloadRecorded(`${track.title}`);
|
const fileName = track.title || `Track ${track.index + 1}`;
|
||||||
|
mediaRecorderService?.downloadRecorded(`${fileName}`);
|
||||||
|
|
||||||
await mediaRecorderService?.closeStream();
|
await mediaRecorderService?.closeStream();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue