An open API service indexing awesome lists of open source software.

https://github.com/evroon/kotlin-soundboard

Simple soundboard app for Android written in Kotlin
https://github.com/evroon/kotlin-soundboard

android kotlin-android soundboard

Last synced: about 1 month ago
JSON representation

Simple soundboard app for Android written in Kotlin

Awesome Lists containing this project

README

          

# Kotlin Soundboard
[![tests](https://github.com/evroon/kotlin-soundboard/actions/workflows/main.yml/badge.svg)](https://github.com/evroon/kotlin-soundboard/actions/workflows/main.yml)

A very basic soundboard for Android, written in Kotlin.

![alt text](misc/preview.jpg "Preview of the app")

Adding sounds
----
Add a sound to the view by doing the following:
1) Place a sound file (such as `example.wav`) in the [raw directory](https://github.com/evroon/kotlin-soundboard/tree/master/app/src/main/res/raw).
2) Add a string to [strings.xml](https://github.com/evroon/kotlin-soundboard/blob/master/app/src/main/res/values/strings.xml), which represents the displayed text in the button. Like this:
```xml

kotlin-soundboard
Splash sounds
splash
example sound

```
3) Register the button in [MainActivity.kt](https://github.com/evroon/kotlin-soundboard/blob/master/app/src/main/java/com/evroon/kotlin_soundboard/MainActivity.kt), by adding it to `layout`:
```kotlin
val layout = arrayOf(
"textview_splash_sounds",
"button_splash",
"button_example"
)
```
It is also possible to add textviews to the layout to split the sounds in categories.