Skip to content

[Proposal] Add RingtoneSource.FromStream support #5

@AmjdAlhashede

Description

@AmjdAlhashede

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions