This repository has been archived by the owner on Dec 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from niusounds/feature/0.2.0
0.2.0
- Loading branch information
Showing
30 changed files
with
222 additions
and
1,457 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
## sampleRate | ||
|
||
In 0.1, some classes implicitly use sample rate `44100` but default sample rate is not always 44100 in DAW. So I decided to remove default `sampleRate`. | ||
|
||
From 0.2, some API takes `sampleRate`. You must specify appropriate value. | ||
|
||
## AudioTrackOutput | ||
|
||
`AudioTrackOutput` is replaced with `play()` function on `Flow<ReaStreamPacket>`. | ||
|
||
``` | ||
// 0.1 | ||
val packets = receiveReaStream() | ||
AudioTrackOutput().play(packets) | ||
// 0.2 | ||
val packets = receiveReaStream() | ||
packets.play(sampleRate = 48000) // sampleRate is required here | ||
``` | ||
|
||
## Old APIs are removed | ||
|
||
Almost all classes in `com.niusounds.libreastream.*` are removed so please migrate to `com.niusounds.libreastream.receiver.*` and `com.niusounds.libreastream.sender.*` before upgrading to 0.2. | ||
|
||
## DatagramChannelReceiver and DatagramSocketReceiver | ||
|
||
Both two classes are removed. | ||
|
||
## ReaStreamReceiver | ||
|
||
`ReaStreamReceiver` is removed. Use `receiveReaStream` function. |
18 changes: 0 additions & 18 deletions
18
libreastream/src/main/java/com/niusounds/libreastream/AudioPacketHandler.kt
This file was deleted.
Oops, something went wrong.
97 changes: 0 additions & 97 deletions
97
libreastream/src/main/java/com/niusounds/libreastream/AudioRecord.kt
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
libreastream/src/main/java/com/niusounds/libreastream/AudioStreamSource.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.