ऑडियो एपीआई सीखने की कोशिश नहीं कर रहा है, लेकिन मुझे बफरलोडर क्लास के लिए एक अनकॉटेड संदर्भ त्रुटि मिलती है। मैं क्रोम पर हूं और यह अद्यतित है। क्या इस वर्ग को कोई समस्या नहीं होनी चाहिए?असीमित संदर्भ त्रुटि बफर लोडर को
<html>
<head>
<script type=text/javascript>
window.onload = init;
var context;
var bufferLoader;
function init(){
context = new webkitAudioContext();
bufferLoader = new BufferLoader(
context,
[
' https://dl.dropboxusercontent.com/u/1957768/kdFFO3.wav',
' https://dl.dropboxusercontent.com/u/1957768/geniuse%20meodies.wav',
],
finishedLoading
);
bufferLoader.load();
}
function finishedLoading(bufferList){
//make two sources and play them
var source1 = context.createBufferSource();
var source2 = context.createBufferSource();
source1.buffer = bufferList[0];
source2.buffer = bufferList[1];
source1.connect(context.destination);
source2.connect(context.destination);
source1.start(0);
source2.start(0);
}
</script>
</head>
<body>
</body>
</html>
जहां इस 'BufferLoader' के लिए दस्तावेज़ है? क्या आप यहां से 'बफरलोडर' के बारे में बात कर रहे हैं http://chromium.googlecode.com/svn/trunk/samples/audio/doc/loading-sounds.html या यहां https://code.google.com/p/chromium /source/browse/trunk/samples/audio/doc/resources/buffer-loader.js?r=2681? – Ian
इसकी वेब ऑडियो एपीआई। यह क्रोम में बॉक्स के ठीक बाहर काम करना चाहिए। – oxxi
मुझे ऐसा नहीं लगता है। जैसा कि आप प्रदान किए गए लिंक (और कई अन्य जो मैंने पाया है) में देख सकते हैं, यह एक कस्टम फ़ंक्शन है जिसे आपको घोषित करना और उपयोग करना है। – Ian