help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Playrec for Octave


From: Robert Humphrey
Subject: Playrec for Octave
Date: Wed, 12 Mar 2008 13:33:38 +0000

Sorry for the delay in providing this information - I've only just
joined the mailing list!

Matthias Brennwald wrote:
>
> I am a complete noob with building mex files. I tried the following
> (within Octave 3.0 on a PPC-Mac with Mac OS X 10.4):
>
> 1. Changed to path/to/playrec_2_0_8/src/
> 2. mkoctfile pa_dll_playrec.c
>
> This produces a zillion of warnings and errors, but no mex file. Can
> anyone help me out?

There are many files that go into building Playrec and they vary
depending on which OS you are using - there's mex_dll_core.c and
pa_dll_playrec.c which contain the actual Playrec functionality;
there's all the files required from PortAudio and then also
potentially files from ASIO as well as requiring multiple include
paths and defines.

If you look in compile_playrec.m and find the compile_button_Callback
function then that is effectively a script to compile Playrec.  I
haven't got the time to do this properly now but if you just copy that
code into its own file and replace all 'get' function calls with the
appropriate values then it should work.  Any value got from a variable
ending _checkbox should be replaced with either a 0 or 1, and any
value got from a variable ending _textbox should be replaced with a
string.  Because the code is designed to compile on multiple OS, just
use 0 and empty strings for all variables that aren't applicable.

To try and make the installation instructions easier for the majority
of people, this script compiles PortAudio in from source as part of
Playrec.  I know for some people this isn't ideal and in the long run
I would like to use PortAudio as a library, but I don't have suitable
systems or the time to change and test this at the moment.

I am keen to try and get Playrec working with Octave so any help or
feedback would be greatly appreciated.  I don't have time to work on
it this week, but will try and do so next week.

Rob


reply via email to

[Prev in Thread] Current Thread [Next in Thread]