Coder Social home page Coder Social logo

problem on threaded uos_File2Buffer about uos HOT 5 CLOSED

fredvs avatar fredvs commented on August 25, 2024
problem on threaded uos_File2Buffer

from uos.

Comments (5)

fredvs avatar fredvs commented on August 25, 2024

Hello Alessandro.

tempoutmemory was declared as a global var and if i use multiple thread of uos_File2Buffer is not a good solution.

Indeed, it was provisional. Thanks to make me remember that.

i post my uos.pas with my change

Wow, many thanks. I will study your code.

i are interested i have made the change for use this library with delphi...

Of course I am interested (but I do not have Delphi installed to test your code).

Write you later.

Fre;D

from uos.

peruginia avatar peruginia commented on August 25, 2024

yes, delphi 10.2 starter edition (it's free) is ok for testing.. but i have made the change in the code without ifdef ,and will work without problem in a working project.. i can publish the change..

from uos.

fredvs avatar fredvs commented on August 25, 2024

Hello Alessandro.

Your code was commited. (Commit 014d46b..2d4983e)
Many thanks.

I did add "numbuf" parameter to uos_Stream2Buffer().
// numbuf : number of frames to add to outmemory (default : -1 = all, otherwise number max of frames)
It can be usefull if you do not need to decode all the file.
For example to detect the BPM.

About Delphi, yes, with pleasure you may publish your code.

Fre;D

from uos.

fredvs avatar fredvs commented on August 25, 2024

Hello.

Added "frompos" (from position) parameter for uos_Stream2Buffer() and uos_File2Buffer().

Fre;D

from uos.

peruginia avatar peruginia commented on August 25, 2024

i still integrate change for delphi in out code, in the next days (depending on my time) i will publish the patch

from uos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.