Surface ffmpeg startup failures
This commit is contained in:
1 parent
1a77896c32
commit
d10dae1b53
4 files changed
+118
-3
No files matched your search
@@ -108,6 +108,12 @@ export default class AudioManager {
|
||||
const resolvedSource = this.resolveSource();
|
||||
this.stopCurrentPlayback();
|
||||
this.ffmpeg = startFfmpeg(resolvedSource.input, this.options.ffmpeg);
|
||||
try {
|
||||
await this.ffmpeg.ready;
|
||||
} catch (error) {
|
||||
this.stopCurrentPlayback();
|
||||
throw error;
|
||||
}
|
||||
this.resource = createAudioResource(this.ffmpeg.process.stdout, {
|
||||
inputType: StreamType.Raw,
|
||||
inlineVolume: this.options.volume?.enabled === true,
|
||||
|
||||
Reference in new issue
Block a user