-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): add AudioSourceWriteEvent
- Loading branch information
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
...lient/src/main/kotlin/su/plo/voice/api/client/event/audio/source/AudioSourceWriteEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package su.plo.voice.api.client.event.audio.source | ||
|
||
import su.plo.voice.api.client.audio.device.source.DeviceSource | ||
import su.plo.voice.api.client.audio.source.ClientAudioSource | ||
import su.plo.voice.api.event.EventCancellableBase | ||
|
||
/** | ||
* This event is fired when the [ClientAudioSource] is about to write audio samples to [DeviceSource]. | ||
*/ | ||
data class AudioSourceWriteEvent( | ||
val source: ClientAudioSource<*>, | ||
val samples: ShortArray | ||
) : EventCancellableBase() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters