Skip to content

Commit

Permalink
supress warnings as they are handled
Browse files Browse the repository at this point in the history
  • Loading branch information
nisrulz committed Dec 5, 2023
1 parent 9574fb3 commit 8a63574
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import com.github.nisrulz.zentone.internal.minBufferSize

fun setThreadPriority() = Process.setThreadPriority(Process.THREAD_PRIORITY_AUDIO)

@Suppress("DEPRECATION")
fun initAudioTrack(sampleRate: Int, encoding: Int, channelMask: Int): AudioTrack {
val bufferSize = minBufferSize(sampleRate)
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
Expand Down Expand Up @@ -53,6 +54,7 @@ fun AudioTrack.stopAndRelease() {
}
}

@Suppress("DEPRECATION")
fun AudioTrack.setVolumeLevel(level: Int) {
/* Sanity Check for max volume, set after write method
to handle issue in Android 4.0.3 */
Expand Down

0 comments on commit 8a63574

Please sign in to comment.