Skip to content

[Proposal] Add RingtoneSource.FromByteArray support #4

Description

@AmjdAlhashede

2. Add RingtoneSource.FromByteArray support

Summary

Add support for ringtones from a raw byte array (ByteArray).


Use Case

Useful when ringtone audio data is generated dynamically or received from network and you want to play or save it without writing to a file.


Proposed Implementation

Add a new data class:

data class FromByteArray(val data: ByteArray) : RingtoneSource()

Internally, handle playback or saving from the raw byte data.


Benefit

Increases flexibility by allowing direct use of raw audio data as ringtone source.

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