avfoundation - Getting and setting playback position AVAudioEngine -


वापस जब AVAudioPlayer का उपयोग किया गया था, तो currentPosition का उपयोग किया जाता था & amp; स्थिति सेट करें, लेकिन जब AVAudioEngine & amp; AVAudioPlayerNode का उपयोग किया जाता है?

AVAudioEngine AVAudioPlayer से अधिक जटिल है। इसलिए मौजूदा स्थिति को जानने के लिए आपको नमूना टाइम / नमूना का उपयोग करना चाहिए नमूना टाइम AVAudioPlayerNode के अंतिम रेन्डरटाइम में पाया जाता है और sampleRate AVAudioFile की फ़ाइल स्वरूप में पाया जाता है।

इसके अलावा, यदि आप वर्तमान स्थिति को सेट करना चाहते हैं, तो आपको प्लेयर में डेटा स्ट्रीम करने के लिए एवाडियओपीसीबीफ़ेर का उपयोग करना होगा। फिर फ़ाइल सूचक को आगे बढ़ने के लिए AVAudioFile की फ्रेम रचना संपत्ति सेट करें का उपयोग करें।

संपादित करें: GitHub

से हटाए जाने के कारण हटाए गए लिंक

संपादित करें।

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

asp.net mvc - How to attach sql database to a javascript graph -

c# - How to know the number of Threads created and limit the Tasks accordingly -