web audio - How to fix changing sample rate bug -
web audio - How to fix changing sample rate bug -
in app after play video, default sample rate changed , sound becomes chip-munk level.
this answer shows clear problem:
// play video sound encoded @ 44100 hz video.play(); // console log 44100 var ctx = new webkitaudiocontext(); console.log(ctx.samplerate); // play video sound encoded @ 48000 hz video2.play(); // console log 48000 var ctx = new webkitaudiocontext(); console.log(ctx.samplerate);
i check in code when sample rate changed before sound starts cannot alter it. this sugests cannot that. refreshing whole page not alternative me.
so there way play sound after video?
edit:
so i've encoded videos , sound same sample rate(44100). however, when app starts on ipad first video plays 24000 sample rate! although works fine, sound starts distorted.
web-audio
Comments
Post a Comment