Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Play/Merge multiple audio streams with a single player #408

Open
Lizhengbo0304 opened this issue Jan 10, 2024 · 2 comments
Open

Play/Merge multiple audio streams with a single player #408

Lizhengbo0304 opened this issue Jan 10, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@Lizhengbo0304
Copy link

I have a video file without audio and I want to pass
public DecoderContext.ExternalStreamOpenedArgs Open(ExternalStream extStream,bool resync = true,bool defaultAudio = true,int streamIndex = -1); method adds ExternalAudioStream for synchronous playback. I found that when I added multiple ExternalAudioStreams, the last one always took effect, and there was no expected effect of all AudioStreams playing at the same time. I would like to ask if there is any way to add multiple ExternalAudioStreams at the same time and take effect at the same time

@SuRGeoNix
Copy link
Owner

SuRGeoNix commented Jan 10, 2024

Hi @Lizhengbo0304, if your question is 'Can Flyleaf play more than one audio streams at the same time?' then the answer is 'No'. I would be interesting in your case as I'm planning to support this in v4. I remember someone in the past, wanted to play desktop sound and microphone at the same time for example. You might be able to achieve this by using two players but you will need to handle the resync between them.

@Lizhengbo0304
Copy link
Author

@SuRGeoNix Thank you very much for your response. Since I have quite a few audio files to play, creating multiple players just for the sake of playing sound seems resource-intensive to me. For now, I've temporarily used FFMPEG to merge all the audio files into one and then play it using Open(ExternalStream extStream,bool resync = true,bool defaultAudio = true,int streamIndex = -1); method, which achieves my goal. Looking forward to the V4 version.

@SuRGeoNix SuRGeoNix changed the title Questions about ExternalAudioStream Play/Merge multiple audio streams with a single player Jan 14, 2024
@SuRGeoNix SuRGeoNix added the enhancement New feature or request label Jan 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants