mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-25 09:37:35 +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(
|
this.children.push(
|
||||||
r.remoteAudio(
|
r.remoteAudio(
|
||||||
amrFile,
|
amrFile,
|
||||||
encodeResult.duration ? Math.ceil(encodeResult.duration) : 1,
|
encodeResult.duration
|
||||||
|
? Math.ceil(encodeResult.duration / 100)
|
||||||
|
: 1,
|
||||||
encodeResult.waveAmplitudes,
|
encodeResult.waveAmplitudes,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user