Advertisement
Guest User

Untitled

a guest
May 20th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.48 KB | None | 0 0
  1.  
  2. @file: JvmName("BeatBox")
  3.  
  4. package com.namazed.beatboxbignerdranch
  5.  
  6. import android.content.Context
  7. import android.content.res.AssetManager
  8. import android.media.AudioManager
  9. import android.media.SoundPool
  10. import android.util.Log
  11. import java.io.IOException
  12. import java.util.*
  13.  
  14. private const val TAG = "BeatBox"
  15. private const val SOUNDS_FOLDER = "sample_sounds"
  16. private const val MAX_SOUNDS = 5
  17.  
  18. class BeatBox(context: Context, private val assets: AssetManager = context.assets)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement