Summary
Add support for ringtones from an InputStream.
Use Case
Useful when audio data comes from dynamic or custom sources, such as databases, network streams, or generated content, without needing to be saved as a file first.
Proposed Implementation
Add a new data class to RingtoneSource:
data class FromStream(val stream: InputStream) : RingtoneSource()
Internally, handle playback or saving directly from the InputStream.
Benefit
This will increase flexibility by allowing the library to handle dynamic audio sources efficiently.
Summary
Add support for ringtones from an
InputStream.Use Case
Useful when audio data comes from dynamic or custom sources, such as databases, network streams, or generated content, without needing to be saved as a file first.
Proposed Implementation
Add a new data class to
RingtoneSource:Internally, handle playback or saving directly from the InputStream.
Benefit
This will increase flexibility by allowing the library to handle dynamic audio sources efficiently.