mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-25 01:29:46 +00:00
fix(api): fix audio duration
This commit is contained in:
parent
bf1c495868
commit
139e188c4b
@ -284,7 +284,9 @@ export class Messager {
|
||||
this.children.push(
|
||||
r.remoteAudio(
|
||||
amrFile,
|
||||
encodeResult.duration ? Math.ceil(encodeResult.duration) : 1,
|
||||
encodeResult.duration
|
||||
? Math.ceil(encodeResult.duration / 100)
|
||||
: 1,
|
||||
encodeResult.waveAmplitudes,
|
||||
),
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user