Skip to content

[Proposal] Add RingtoneSource.FromByteArray support #4

@AmjdAlhashede

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.

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