简体   繁体   English

createjs SoundJS 播放单声道而不是立体声

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM