如何同时播放两种声音? [英] How to play two sounds at the same time?

查看:276
本文介绍了如何同时播放两种声音?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我一直在尝试一些声音扑朔迷离的事情.使用audioPlayer插件.

I've been trying a few things with sounds in flutter lately . Using audioPlayer plugin.

但是我正面对一堵墙.我既有背景音乐,又有小声音效果. 问题是我不能同时玩两个.如果我播放背景音乐,则不会播放声音效果.而相反的方法也是如此.

But I'm facing a wall. I have both a background music, and small sounds effects. The problem is that I can't play both at once. If I play the background music, then the sound effect won't play. And the opposite works too.

关于如何解决该问题的任何想法?

Any idea about how to solve that issue ?

推荐答案

audioplayer 插件,并且已经为它打开了问题.作者已经表示,如果您想在实现请求方面有所作为,他愿意提出请求.

This is an issue with the audioplayer plugin and there's an issue open for it already. The author has indicated that he's open to pull requests if you'd like to take a crack at implementing it.

这篇关于如何同时播放两种声音?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆