-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): use processed samples (if available) in settings screen
- Loading branch information
Showing
3 changed files
with
77 additions
and
14 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
...src/main/java/su/plo/voice/api/client/event/audio/capture/AudioCaptureProcessedEvent.java
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,33 @@ | ||
package su.plo.voice.api.client.event.audio.capture; | ||
|
||
import lombok.Getter; | ||
import lombok.NonNull; | ||
import org.jetbrains.annotations.Nullable; | ||
import su.plo.voice.api.client.audio.capture.AudioCapture; | ||
import su.plo.voice.api.client.audio.device.InputDevice; | ||
import su.plo.voice.api.event.Event; | ||
|
||
/** | ||
* This event is fired once a samples was processed by {@link AudioCapture} | ||
*/ | ||
public final class AudioCaptureProcessedEvent implements Event { | ||
|
||
@Getter | ||
private final AudioCapture capture; | ||
@Getter | ||
private final InputDevice device; | ||
@Getter | ||
private final short[] samples; | ||
@Getter | ||
private final short[] samplesProcessed; | ||
|
||
public AudioCaptureProcessedEvent(@NonNull AudioCapture capture, | ||
@NonNull InputDevice device, | ||
short[] samples, | ||
short[] samplesProcessed) { | ||
this.capture = capture; | ||
this.device = device; | ||
this.samples = samples; | ||
this.samplesProcessed = samplesProcessed; | ||
} | ||
} |
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