Re: [PD] iOS: writesf~ problem

2018-07-19 Thread Dan Wilcox
No, sorry. I can't do much unless I have the project itself.

enohp ym morf tnes
---
Dan Wilcox
danomatika.com
robotcowboy.com


> On Jul 19, 2018, at 7:19 AM, ar...@katlenok.ru wrote:
> 
> Dan,
> 
> No more ideas?
> 
> Artem
>> On 15 Jul 2018, 10:41 +0300, ar...@katlenok.ru, wrote:
>> Dear Dan,
>> 
>> I’ve rechecked this ten times already.
>> I’ve even made sample project in Objc, integrated libpd with cocapods and it 
>> worked as intended.
>> 
>> Can someone recheck this? Maybe I’m doing something wrong?
>> 
>> Thanks!
>> 
>> Artem
>>> On 15 Jul 2018, 01:28 +0300, Dan Wilcox , wrote:
>>> Maybe string handling from Swift to libpd is messing up the path? I would 
>>> double check the path and that you are creating the file in a *writable* 
>>> location aka the app's Documents or temp folders.
>>> 
>>>> On Jul 12, 2018, at 7:17 PM, pd-list-requ...@lists.iem.at wrote:
>>>> 
>>>> From: ar...@katlenok.ru
>>>> To: pd-list@lists.iem.at, IOhannes m zmölnig 
>>>> Subject: Re: [PD] iOS: writesf~ problem
>>>> Message-ID: <8f71e953-8b31-43f0-8704-ae63d1f07beb@Spark>
>>>> Content-Type: text/plain; charset="utf-8"
>>>> 
>>>> I’ve increased value to 3e+08, and I waited for this recursion for a 
>>>> minute, it did not occur, but the file was not created.
>>>> 
>>>> I have Objective C written application, where everything works as 
>>>> intended, and my Swift version is stuck on this one.
>>>> 
>>>> Any more ideas?
>>> 
>>> 
>>> Dan Wilcox
>>> @danomatika
>>> danomatika.com
>>> robotcowboy.com
>>> 
>>> 
>>> 
>> ___
>> Pd-list@lists.iem.at mailing list
>> UNSUBSCRIBE and account-management -> 
>> https://lists.puredata.info/listinfo/pd-list
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] iOS: writesf~ problem

2018-07-18 Thread artem
Dan,

No more ideas?

Artem
On 15 Jul 2018, 10:41 +0300, ar...@katlenok.ru, wrote:
> Dear Dan,
>
> I’ve rechecked this ten times already.
> I’ve even made sample project in Objc, integrated libpd with cocapods and it 
> worked as intended.
>
> Can someone recheck this? Maybe I’m doing something wrong?
>
> Thanks!
>
> Artem
> On 15 Jul 2018, 01:28 +0300, Dan Wilcox , wrote:
> > Maybe string handling from Swift to libpd is messing up the path? I would 
> > double check the path and that you are creating the file in a *writable* 
> > location aka the app's Documents or temp folders.
> >
> > > On Jul 12, 2018, at 7:17 PM, pd-list-requ...@lists.iem.at wrote:
> > >
> > > From: ar...@katlenok.ru
> > > To: pd-list@lists.iem.at, IOhannes m zmölnig 
> > > Subject: Re: [PD] iOS: writesf~ problem
> > > Message-ID: <8f71e953-8b31-43f0-8704-ae63d1f07beb@Spark>
> > > Content-Type: text/plain; charset="utf-8"
> > >
> > > I’ve increased value to 3e+08, and I waited for this recursion for a 
> > > minute, it did not occur, but the file was not created.
> > >
> > > I have Objective C written application, where everything works as 
> > > intended, and my Swift version is stuck on this one.
> > >
> > > Any more ideas?
> >
> > 
> > Dan Wilcox
> > @danomatika
> > danomatika.com
> > robotcowboy.com
> >
> >
> >
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] iOS: writesf~ problem

2018-07-15 Thread artem
Dear Dan,

I’ve rechecked this ten times already.
I’ve even made sample project in Objc, integrated libpd with cocapods and it 
worked as intended.

Can someone recheck this? Maybe I’m doing something wrong?

Thanks!

Artem
On 15 Jul 2018, 01:28 +0300, Dan Wilcox , wrote:
> Maybe string handling from Swift to libpd is messing up the path? I would 
> double check the path and that you are creating the file in a *writable* 
> location aka the app's Documents or temp folders.
>
> > On Jul 12, 2018, at 7:17 PM, pd-list-requ...@lists.iem.at wrote:
> >
> > From: ar...@katlenok.ru
> > To: pd-list@lists.iem.at, IOhannes m zmölnig 
> > Subject: Re: [PD] iOS: writesf~ problem
> > Message-ID: <8f71e953-8b31-43f0-8704-ae63d1f07beb@Spark>
> > Content-Type: text/plain; charset="utf-8"
> >
> > I’ve increased value to 3e+08, and I waited for this recursion for a 
> > minute, it did not occur, but the file was not created.
> >
> > I have Objective C written application, where everything works as intended, 
> > and my Swift version is stuck on this one.
> >
> > Any more ideas?
>
> 
> Dan Wilcox
> @danomatika
> danomatika.com
> robotcowboy.com
>
>
>
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] iOS: writesf~ problem

2018-07-14 Thread Dan Wilcox
Maybe string handling from Swift to libpd is messing up the path? I would 
double check the path and that you are creating the file in a *writable* 
location aka the app's Documents or temp folders.

> On Jul 12, 2018, at 7:17 PM, pd-list-requ...@lists.iem.at wrote:
> 
> From: ar...@katlenok.ru <mailto:ar...@katlenok.ru>
> To: pd-list@lists.iem.at <mailto:pd-list@lists.iem.at>, IOhannes m zmölnig 
> mailto:zmoel...@iem.at>>
> Subject: Re: [PD] iOS: writesf~ problem
> Message-ID: <8f71e953-8b31-43f0-8704-ae63d1f07beb@Spark>
> Content-Type: text/plain; charset="utf-8"
> 
> I’ve increased value to 3e+08, and I waited for this recursion for a minute, 
> it did not occur, but the file was not created.
> 
> I have Objective C written application, where everything works as intended, 
> and my Swift version is stuck on this one.
> 
> Any more ideas?


Dan Wilcox
@danomatika <http://twitter.com/danomatika>
danomatika.com <http://danomatika.com/>
robotcowboy.com <http://robotcowboy.com/>



___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] iOS: writesf~ problem

2018-07-12 Thread artem
I’ve increased value to 3e+08, and I waited for this recursion for a minute, it 
did not occur, but the file was not created.

I have Objective C written application, where everything works as intended, and 
my Swift version is stuck on this one.

Any more ideas?

Artem
On 12 Jul 2018, 16:21 +0300, IOhannes m zmölnig , wrote:
> On 07/12/2018 02:28 PM, ar...@katlenok.ru wrote:
> > Hello community,
> >
> > I am having a problem when recording a soundfile using pure data in my iOS 
> > application.
> >
> > Just like David’s message here: 
> > https://www.mail-archive.com/pd-list@lists.iem.at/msg08232.html
> > I am having same behaviour with endless recursion:
>
> infinite recursion? (i think you mean something else)
>
> >
> > writesf waiting for disk write..
> > (head 524032, tail 0, room 256, want 256)
> > ... done waiting.
>
> it seems like the write thread fails to put bytes into the disk (and
> thus empty the data queue).
>
> is the file created?
> do you get an "error" (disguised as an ordinary printout) when trying to
> open the file for writing?
>
> does it help if you raise the buffer size (via the 2nd argument to
> [writesf~] - it's undocumented, but see [readsf~])
>
> what happens if you close the file before the error appears? (e.g. does
> it get written?)
>
> gfamdsr
> IOhannes
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] iOS: writesf~ problem

2018-07-12 Thread artem
Dear Iohannes, Dear all,

Infinite recursion it is, it gets stuck in while block.
The file is not created, I don’t receive any errors from Pd, I tried to stop 
recording just moments after record start and nothing happened, no error, but 
no file either.

It looks like Pd has no access or permission to write, yes?

Thanks,
Artem


On 12 Jul 2018, 16:21 +0300, IOhannes m zmölnig , wrote:
> On 07/12/2018 02:28 PM, ar...@katlenok.ru wrote:
> > Hello community,
> >
> > I am having a problem when recording a soundfile using pure data in my iOS 
> > application.
> >
> > Just like David’s message here: 
> > https://www.mail-archive.com/pd-list@lists.iem.at/msg08232.html
> > I am having same behaviour with endless recursion:
>
> infinite recursion? (i think you mean something else)
>
> >
> > writesf waiting for disk write..
> > (head 524032, tail 0, room 256, want 256)
> > ... done waiting.
>
> it seems like the write thread fails to put bytes into the disk (and
> thus empty the data queue).
>
> is the file created?
> do you get an "error" (disguised as an ordinary printout) when trying to
> open the file for writing?
>
> does it help if you raise the buffer size (via the 2nd argument to
> [writesf~] - it's undocumented, but see [readsf~])
>
> what happens if you close the file before the error appears? (e.g. does
> it get written?)
>
> gfamdsr
> IOhannes
>
>
> ___
> Pd-list@lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> https://lists.puredata.info/listinfo/pd-list
___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list


Re: [PD] iOS: writesf~ problem

2018-07-12 Thread Claude Heiland-Allen

Hi Artem,

On 12/07/18 13:28, ar...@katlenok.ru wrote:

Hello community,

I am having a problem when recording a soundfile using pure data in my 
iOS application.


Just like David’s message here: 
https://www.mail-archive.com/pd-list@lists.iem.at/msg08232.html

I am having same behaviour with endless recursion:

writesf waiting for disk write..
(head 524032, tail 0, room 256, want 256)
... done waiting.


I got floods of this message when using -batch with something like

[open /path/that/does/not/exist.wav, start(--[writesf~ 2]

so maybe check that you have a valid writeable path...

In my case it was a typo on desktop Linux and easy to fix.  I don't know 
where iOS lets you write files.



Claude



Pure Data is integrated in iOS app using cocoapods.

Maybe someone has some ideas? Maybe someone had this issue?

Many thanks,
Sincerely,

Artem


--
https://mathr.co.uk

___
Pd-list@lists.iem.at mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list