lots of changes in code for ssl client
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user