PCM डेटा हैंडलिंग
ध्वनि तरंग के चलते समय PCM डेटा प्राप्त करना
आप ध्वनि तरंग के चलते समय PCM डेटा प्राप्त करने के लिए OnGeneratePCMData डेलीगेट का उपयोग कर सकते हैं। यह PCM ऑडियो डेटा को प्रोसेस या विश्लेषण करते समय उपयोगी है।
- Blueprint
- C++

// Assuming ImportedSoundWave is a UE reference to a UImportedSoundWave object (or its derived type, such as UStreamingSoundWave, UCapturableSoundWave, etc.)
ImportedSoundWave->OnGeneratePCMDataNative.AddWeakLambda(this, [this](const TArray<float>& PCMData)
{
// Handle the result
});
नवीन रूप से भरी गई PCM डेटा प्राप्त करना
OnPopulateAudioData डेलीगेट का उपयोग नवीन रूप से भरी गई PCM डेटा प्राप्त करने के लिए किया जा सकता है, जो स्ट्रीमिंग साउंड वेव्स के लिए विशेष रूप से उपयोगी है और ऑडियो विश्लेषण प्रक्रिया को सरल बना सकता है।
- Blueprint
- C++

// Assuming ImportedSoundWave is a UE reference to a UImportedSoundWave object (or its derived type, such as UStreamingSoundWave, UCapturableSoundWave, etc.)
ImportedSoundWave->OnPopulateAudioDataNative.AddWeakLambda(this, [this](const TArray<float>& PopulatedAudioData)
{
// Handle the result
});
PCM डेटा को बाइट्स में बदलना
इन प्रतिनिधियों से प्राप्त PCM डेटा 32-बिट फ्लोट PCM प्रारूप में होता है। यदि आपको PCM डेटा को बाइट्स में बदलने की आवश्यकता है, तो Transcode Audio देखें।