lots of changes in code for ssl client

This commit is contained in:
tdv
2025-10-13 20:01:16 +03:00
parent 78b7d495d4
commit 9055a55ad3
9 changed files with 322 additions and 284 deletions

View File

@@ -37,9 +37,9 @@ public:
}
// Feed raw PCM (float32 interleaved), frames = samples per channel
void OnPCM(const float* interleaved, size_t frames) {
void OnOpus(const unsigned char* opusData, size_t opusBytes, int pcmFramesPerChannel) {
std::lock_guard lk(m_whipMutex);
if (m_whip) m_whip->PushPCM(interleaved, frames);
if (m_whip) m_whip->PushOpus(opusData, opusBytes, pcmFramesPerChannel);
}
bool StartWhip(const std::string& whipUrl, int sampleRate=48000, int channels=1) {