Free Pascal Lazarus App Tutorial 11 - Playing Wav Sound Files on Mac


The Mac has a built-in terminal program called afplay. afplay plays wav files. We can access afplay by using a TProcess. For more information on TProcess see Free Pascal Program Tutorial 28. Also, the Tutorial 11 App needs to use single quotes ‘ around the command line file location. The big problem is that Pascal uses single quotes ‘ for strings. To put a single quote in a string, use four single quotes together ‘’’’.

Code & Wav Download
FPAppT11.zip
Test.wav