Skip to content

sd_mp3 going back one directory/how to set perticular file in source object #248

Answered by pschatzmann
RitikDutta asked this question in Q&A
Discussion options

You must be logged in to vote

Why don't you just use the regular stream API: on condition 1 you copy the file1 to the EncodedAudioStream() and on condition 2 you copy the other file.
Another way - if you want to use the AudioPlayer class - would be that you implement your own AudioSource subclass.

Replies: 2 comments 1 reply

Comment options

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

Answer selected by RitikDutta
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants