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

Re: [Sc-devel] [windows] recording



Seems like a good idea, it should probably be noted in the readme that
the user must manually set a recording directory.


John

On 12/02/2008, James Harkins <jamshark70@xxxxxxxxx> wrote:
> I think this is the culprit, in Server:prepareForRecord.
>
>         prepareForRecord { arg path;
>                 if (path.isNil) {
>                         path = defaultRecDir ++ "/SC_" ++ Date.localtime.stamp
>                                                         ++ "." ++ recHeaderFormat;
>                 };
>
> The Date class is not working in Windows -- any use of it crashes the client.
>
> Let's put this in the windows platform directory. With this change, it
> doesn't crash although recording fails (unless the user has created a
> recording folder and set the defaultRecDir).
>
> File 'recordings/SC_1202844373.56.aiff' could not be opened. 'System error.'
>
> + Server {
>         prepareForRecord { arg path;
>                 if (path.isNil) {
>                         path = defaultRecDir ++ "/SC_" ++ Main.elapsedTime.round(0.01)
>                                                         ++ "." ++ recHeaderFormat;
>                 };
>                 recordBuf = Buffer.alloc(this, 65536, recChannels,
>                         {arg buf; buf.writeMsg(path, recHeaderFormat, recSampleFormat, 0, 0, true);},
>                         this.options.numBuffers + 1); // prevent buffer conflicts by using
> reserved bufnum
>                 SynthDef("server-record", { arg bufnum;
>                         DiskOut.ar(bufnum, In.ar(0, recChannels))
>                 }).send(this);
>                 // cmdPeriod support
>                 CmdPeriod.add(this);
>         }
> }
>
> hjh
>
>
> On Feb 11, 2008 6:16 PM, John Glover <glover.john@xxxxxxxxx> wrote:
> > Hello,
> >
> > The 'prepare rec' button on the server window causes python to crash
> > for me with the latest source, no error messages. Anyone else?
>
>
>
> --
> James Harkins /// dewdrop world
> jamshark70@xxxxxxxxxxxxxxxxx
> http://www.dewdrop-world.net
>
> "Come said the Muse,
> Sing me a song no poet has yet chanted,
> Sing me the universal."  -- Whitman
> _______________________________________________
> Sc-devel mailing list
> Sc-devel@xxxxxxxxxxxxxxx
> http://lists.create.ucsb.edu/mailman/listinfo/sc-devel
>