Skip to content

Commit

Permalink
[ #32 ] Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ice1000 committed Dec 12, 2017
1 parent f3ce84c commit 4f291c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/org/frice/utils/media/AudioManager.kt
Expand Up @@ -2,7 +2,6 @@

package org.frice.utils.media

import org.frice.utils.media.AudioPlayerImpl.*
import java.io.File
import javax.sound.sampled.*

Expand All @@ -26,8 +25,7 @@ fun play(path: String, infinite: Boolean = false) = getPlayer(path, infinite).st
* @since v0.3.1
*/
@JvmOverloads
fun getPlayer(file: File, infinite: Boolean = false) =
AudioPlayer(if (infinite) LoopAudioPlayer(file) else OnceAudioPlayer(file))
fun getPlayer(file: File, infinite: Boolean = false) = if (infinite) LoopAudioPlayer(file) else OnceAudioPlayer(file)

/**
* @author ice1000
Expand Down

0 comments on commit 4f291c4

Please sign in to comment.