Re: [fpc-pascal] Pipe vs Memory buffer.

2017-01-25 Thread Michael Van Canneyt
On Wed, 25 Jan 2017, fredvs wrote: That will never work. OP_WARN_UNUSED_RESULT OggOpusFile *op_test_memory(const unsigned char *_data, size_t _size,int *_error); expects a memory buffer; you cannot pass it a stream. Ha, ok. And how to convert a pipe into a memory buffer ? Read from

Re: [fpc-pascal] Pipe vs Memory buffer.

2017-01-25 Thread fredvs
>That will never work. > OP_WARN_UNUSED_RESULT OggOpusFile *op_test_memory(const unsigned char > *_data, size_t _size,int *_error); > expects a memory buffer; you cannot pass it a stream. Ha, ok. And how to convert a pipe into a memory buffer ? Thanks. Fre;D - Many thanks ;-) -- Vi

Re: [fpc-pascal] Pipe vs Memory buffer.

2017-01-25 Thread Michael Van Canneyt
On Wed, 25 Jan 2017, fredvs wrote: Hello In a C method: OP_WARN_UNUSED_RESULT OggOpusFile *op_test_memory(const unsigned char *_data, size_t _size,int *_error); translated in Pascal with this: var op_test_memory: function(const _data; const size: cuint; out error: cint): TOggOpusFile; How

[fpc-pascal] Pipe vs Memory buffer.

2017-01-25 Thread fredvs
Hello In a C method: OP_WARN_UNUSED_RESULT OggOpusFile *op_test_memory(const unsigned char *_data, size_t _size,int *_error); translated in Pascal with this: var op_test_memory: function(const _data; const size: cuint; out error: cint): TOggOpusFile; How to use a pipe for _data ? The pipe i

Re: [fpc-pascal] Connect to 'https://...' url with fphttpclient ?

2017-01-25 Thread fredvs
> I can listen to http://geldenhuys.co.uk/~graemeg/temp/test.opus in web-streaming with fpc code! > I will release a working demo in uos asap. Huh, no, sorry, I said victory too fast. I uos can listen in streaming "https" mp3 but not opus files. The opus method op_test_url does not work here.

Re: [fpc-pascal] Deleting 'Nonexistent' files under windows

2017-01-25 Thread Jürgen Hestermann
Am 2017-01-25 um 11:08 schrieb Jürgen Hestermann: I have written a file manager which uses the (Unicode) Windows API with \?\\ syntax and I never had any problems deleting long paths (testet up to 35,000 characters) Sorry, the number of tested characters wasn't 35,000 but about 25,000. Still

Re: [fpc-pascal] Deleting 'Nonexistent' files under windows

2017-01-25 Thread Jürgen Hestermann
Am 2017-01-24 um 18:44 schrieb Bart: I once created a folder and file using W API and \?\\ syntax for testing purposes. This all went well, but Windows did not like it and would not let me remove the file and folder. I rewote my test program to remove them, but still Windows refused. (The folder