Compile playrec for MatLab on Linux Mint

longnguyen2306
  6 years ago
  0

1. Download playrec source file from this link and extract it: http://www.playrec.co.uk/download.html

2. Download PortAudio source file from its homepage, extract it inside the playrec folder in the folder libhttp://www.portaudio.com/download.html

3. Open the extracted PortAudio folder and follow the path: portaudio/src/os  

4. Create an empty folder and name it: mac_osx

5. Install Octave (I use the version 4.2.2)

6. Open Synaptic Package Manager and install following packages: libasound2-dev and liboctave-dev

7. Open Octave and navigate to your previously extracted playrec folder.

8: Enter command: compile_playrec

9. Enter again.

10. 

Debug mode: y

Verbose mode: y

Case insensitive function names: n

ALSA: y

HPI: n

JACK: n

OSS: n

11. If all went well, now you should have a binary file named playrec.mex inside your playrec folder.

12. Rename your playrec.mex file to playrec.mexa64

13. Include your playrec.mexa64 file into your matlab project folder and test it by the matlab command: playrec('getDevices')

14. Happy coding.