loadAudioFile

fun loadAudioFile(audioFilePath: String): DeeptoneOutput?

Receives a String representing a file-path or http URL of an audio file and returns DeeptoneOutput.

Parameters

audioFilePath

a String representing a file-path or http URL of an audio file When audioFilePath refers to a local file, the file may actually be opened by a process other than the calling application. This implies that the pathname should be an absolute path (as any other process runs with unspecified current working directory), and that the pathname should reference a world-readable file. When path refers to a network file the Manifest.permission.INTERNET permission is required. This value cannot be null. WARNING! Only audio files sample at 16khz will result in a reliable deeptone output

fun loadAudioFile(audioFileDescriptor: FileDescriptor): DeeptoneOutput?

Receives a FileDescriptor for an audio file and returns DeeptoneOutput.

Parameters

audioFileDescriptor

file descriptor for an audio file WARNING! Only audio files sample at 16khz will result in a reliable deeptone output

fun loadAudioFile(audioAssetFileDescriptor: AssetFileDescriptor): DeeptoneOutput?

Receives an AssetFileDescriptor of an audio file and returns DeeptoneOutput.

Parameters

audioAssetFileDescriptor

AssetFileDescriptor of an audio file WARNING! Only audio files sample at 16khz will result in a reliable deeptone output