Skip to content

is it right process() method is deprecated? #140

Answered by designe
SeonJK asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @SeonJK

You're right! you found comment & documentation error

* @deprecated Replaced by {@link #setCode()}, deprecated for naming issue

Actually, The setCode() is not a replacement for the process(). We need to modify here (setCode() -> play())

public void process() { play(1, PlayerEngine.ANDROID_DEFAULT_ENGINE); }

As you mentioned, play() is the proper function for generating sound. so, we need to update comment & documentation.
Thanks for finding them! Could you make a PR for this?

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@SeonJK
Comment options

@SeonJK
Comment options

Answer selected by SeonJK
Comment options

You must be logged in to vote
1 reply
@designe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants