Skip to content

[Proposal] Add RingtoneSource.FromStream support #5

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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