[英]createjs SoundJS plays mono sound instead of stereo
I use createjs.Sound
to play short sound for my project.我使用
createjs.Sound
为我的项目播放短音。 I wasn't able to use .mp3
format file and converted it to .ogg
format.我无法使用
.mp3
格式文件并将其转换为.ogg
格式。 .ogg
is playable, but sound is mono channel (I hear only in one side of headset). .ogg
是可播放的,但声音是单声道(我只能在耳机的一侧听到)。 When I tried to play same file with VLC player, it sounds stereo channel (same file).当我尝试用 VLC 播放器播放同一个文件时,它听起来是立体声通道(同一个文件)。 I understood that have no problem with conversion of file and problem may be in configuration of
SoundJS
.我知道文件转换没有问题,问题可能出在
SoundJS
配置上。
Can anyone advice how to configure SoundJS
to play stereo channel audio?谁能建议如何配置
SoundJS
来播放立体声声道音频?
There was a bug in a version of SoundJS - maybe it's because of that (depends on the version you are using...). SoundJS 的某个版本中存在错误 - 可能是因为这个原因(取决于您使用的版本......)。 Check the SoundJS-Github page for further information: https://github.com/CreateJS/SoundJS/issues/182
查看 SoundJS-Github 页面以获取更多信息: https : //github.com/CreateJS/SoundJS/issues/182
You can also try to change the pan
property: http://www.createjs.com/docs/soundjs/classes/AbstractSoundInstance.html#property_pan您也可以尝试更改
pan
属性: http : //www.createjs.com/docs/soundjs/classes/AbstractSoundInstance.html#property_pan
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.