Skip to content

Commit

Permalink
fe
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldb09 committed Mar 5, 2023
1 parent 2a5ba0f commit dc4138c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ fun decodeTrack(audioPlayerManager: AudioPlayerManager, message: String): AudioT
val bais = ByteArrayInputStream(Base64.decodeBase64(message))
return try {
audioPlayerManager.decodeTrack(MessageInput(bais)).decodedTrack
?: throw Exception("Failed to decode track")
?: throw TrackDecodingException("Failed to decode track")
} catch (e: IllegalStateException) {
// Handle the exception here
throw TrackDecodingException("An error occurred while decoding track: ${e.message}")
}
}
fun encodeTrack(audioPlayerManager: AudioPlayerManager, track: AudioTrack): String {
Expand Down

0 comments on commit dc4138c

Please sign in to comment.