Playrec for Octave
Matthias Brennwald
matthias at brennwald.org
Fri Mar 14 14:38:06 CDT 2008
On 12.03.2008, at 14:54, help-octave-request at octave.org wrote:
> Message: 8
> Date: Wed, 12 Mar 2008 13:33:38 +0000
> From: "Robert Humphrey" <octave at robhumphrey.me.uk>
> Subject: Playrec for Octave
> To: help-octave at octave.org
> Message-ID:
> <a1515ccc0803120633r65481f65y3f5b67570466d733 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 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
Dear Rob
I've looked at the compile_playrec script. To be honest, I couldn't
make much sense from it because I lack the knowledge about how these
things work (Matlab-GUIs, compiler options, etc.). However, I am
pretty sure it should be possible to make a similar script that works
without a whizz-bang GUI, but uses the terminal instead to ask the
user a few questions. This should then work with Octave, too. What do
you think? Maybe you could even make an Octave package from it (see
http://octave.sourceforge.net ).
Matthias
More information about the Help-octave
mailing list