这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@NickKhalow
Copy link
Contributor

No description provided.

ashkan-saeedi-mazdeh and others added 30 commits December 15, 2023 13:09
Room Ids are different
modification trying to fix compiler errors
* disconnect support

* Fix name

* To handle better connection and disconnection from room

* change to avoid using of Coroutines, using async methods instead

* async OnAudioRead

* Cleaning logs

* Cancel tokens

* Cancel token

* remove Task.Run, since usually SendRequest is called from other task

* getting rid of use YieldInstruction

* adding audio filter in main thread

* passing CancellationToken instead of CancellationTokenSource

* added check for cancellation at beginning

* Cleaning handles

* fix await

* remove cruft

* Cancellation token cleanup

* Factory async method

* basic handling of remaining events

* more async

* wip

* Compile pass

* formatting

* fix pending check

* revert async changes

* prep audio filter for threads

* loggin

* logs to debug publishing track

* minor cleanup

* added some methods to handle localtrack and SetSubscribed, Clenaing code

* Cleaning up

* fixes for yield instructions

* macro for verbose logs

* Audio data and pointer fix

Still says samplerate and num of channels are incorrect

* remove possibility of null

* todo ref buffering

* minor cleanup

* cruft

* todo object pooling

* remove redundant Task usages on separated threads

---------

Co-authored-by: cdga777 <cdga777@gmail.com>
Co-authored-by: nickkhalow <nickhalow@gmail.com>
* remove redundant Task usages on separated threads

* FfiRequestsPool

* IFFIClient interface

* disposable FFIClient

* FFIClient initialize simplify

* PoolableFFIClient

* NativeMethods pass pointer

* response pooling

* tests for reject manual creation of protocol objects

* FfiResponseWrap, remove manual new Request calls

* remove IPoolableFFIClient

* FFIBridge introduction, remove closures, RAII with FfiResponseWrap and FfiRequestWrap

* Clear -> generic ClearMessage
* fix clear message

* optimise FfiNewRequest - no FfiHandle

* LiveKitInitialize with IntPtr

* const format

* memory pool

* inner message pooling

* ArrayMemoryPool with thread safety

* remove obsolete

* thread safety
# Conflicts:
#	Runtime/Scripts/Internal/FFIHandle.cs
NickKhalow and others added 27 commits March 13, 2025 16:13
Now the topic is sent too in the Notification of the data pipe
* Added create track to Room

* Refactor RTCAudioSource

* updated rooms and audio tracks

* added missing metas

* Update IRoom.cs

* Update Track.cs

* Fix to audiosource

* Added logs to AudioSource for debugging

* removed debug data

* Optimized audiosource further

* fix for span

* Added IAudioFilter interface to allow extending it

* Fixes from PR

* extracted IRoom reference from AudioTracks

* remove audio frame size calculation from audio source
* borrow update generate_proto.sh from main repository

* update windows binaries

* remove support for linux

* update protocol

* update macos binaries

* update native methods

* adopt ffi bridge to new contract
* Fixed publish track logic so it gets properly added to tracks and events properly find it

* extracted interface for rtcAudioSource

* changed AudioRead to use spans and renamed AudioSource to RtcAudiosSource to avoid confusions

* Update OptimizedRtcAudioSource.cs

* Added AudioSourceOptions to enable advanced WebRTC features

* Improvements to OptimizedRTCAudioSource

* Improved ConnectionUpdate return value with disconnection reason

* Revert "Improved ConnectionUpdate return value with disconnection reason"

This reverts commit 449239d.

* added cleanup of speakers and participants on Disconnect

* Cleanup of participants on disconnection from room

* Improvements to audio source and audio stream + fixes for room and participants hub

* Update ParticipantsHub.cs

* Update OptimizedRtcAudioSource.cs

* renamed file to better reflect its use

* Update OptimizedMonoRtcAudioSource.cs
* integrate apm module with example

* migrate rtc location

* borrow handle

* connection operation with result type

* proper destroy of audio capture filter
…40)

* Added disconnect reason

* Created new delegate for disconnection

* Revert "Created new delegate for disconnection"

This reverts commit 0cce216.

* expose Handle from interface to be able implement it in a dependent project

* switchable microphone source

* resume capture on microphone switch

* audio mixer group support

* GlobalListenerAudioFilter

* Audio buffer, remove unsafe

* ensure correct sample rate

* audio resampler with default livekit hz

* reverse stream sampling

* resample microphone

* audio frame unify

* audio upgrades

* adjust buffer

* test

* audio buffer

* test capacitive buffer

* native ring buffer

* native audio buffer

* adjust namespaces

* native ring buffer into MicrophoneRtcAudioSource

* device microphone attributes

* example room from storage

* device context menu to audio filter

* rust audio implementation

* microphone audio filter

* microphone capture playground

* fix crash on reload

* build script

* rust audio status

* mac compilation support

* mac build

* uodate dll

* distress audio thread

* csharp wrap

* duration check for resampler

* playback test

* fix sample rate calculation;

* thread safe without mutex

* mac update

* not 0 assertions

* update dll

* playback attachments

* type integration for MicrophoneSelection

* microphone selection dropdown

* microphone subscription on switching

* remove obsolete logging

* audio mixer support

* playback expose

* graceful playback dispose with gameobject destruction

* tools for editor

* validate frame before playing it

* channel per audio stream

* rebuild windows

* build macos

* warning when read form an initialized buffer

---------

Co-authored-by: Fran Colarich <56565104+fcolarich@users.noreply.github.com>
…tion was modified; enumeration operation may not execute"
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ NickKhalow
❌ fcolarich
You have signed the CLA already but the status is still pending? Let us recheck it.

@NickKhalow NickKhalow closed this Sep 15, 2025
@NickKhalow NickKhalow deleted the fix/room-handles-and-events branch September 16, 2025 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants