Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3688

Returning A class Pair?

$
0
0

Here’s a condensed version of my code:

Var outputFile As FolderItem = soundsFolder.Child(“g” + uniqueID + “.mp3”)

Var outputFilePath As String = outputFile.NativePath

Var ffmpegCmd As String
ffmpegCmd = “/opt/homebrew/bin/ffmpeg -y -f avfoundation -i ":3" -t 5 -ac 1 -b:a 192k "” + outputFilePath + “"”

My app fails to build with the error message:

Type mismatch error. Expected String, but got class Pair
ffmpegCmd = “/opt/homebrew/bin/ffmpeg -y -f avfoundation -i ":3" -t 5 -ac 1 -b:a 192k "” + outputFilePath + “"”

Would anyone have an idea as to why that fourth line is returning a class Pair rather than a String?

Thanks!

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3688

Trending Articles