MarshalX / tgcalls

Voice chats, private incoming and outgoing calls in Telegram for Developers
https://t.me/tgcallslib
GNU Lesser General Public License v3.0
516 stars 91 forks source link

Completely reworked system of managing instances (smart pointers) and working with memory #127

Closed MarshalX closed 3 years ago

MarshalX commented 3 years ago

using smart-holder version of pybind11; using smart pointers in main parts of binding; fix calling of method for audio device model (now in the right thread); move working with audio device module from binding to tgcalls because it should works from right threads (in prev version we cant destruct audio device module because it was create in thread of tgcalls); add new native method to implement right flow with stopping and destroying instances (stopAudioDeviceModule, startAudioDeviceModule); fix audio device wrapper for macOS; fix malloc for raw group call; rework waiting from sleeps to asyncio events.