Coder Social home page Coder Social logo

Comments (4)

plutooo avatar plutooo commented on May 14, 2024

What pointer do you get back? If you print it out?

from libnx.

ericde45 avatar ericde45 commented on May 14, 2024

Hello,

first point : released is created as a AudioOutBuffer variable :
AudioOutBuffer released;
exactly as in the playtone example
( not as a pointer )

audoutGetReleasedAudioOutBuffer is called with &released and &num :
r = audoutGetReleasedAudioOutBuffer(&released, &num);

i allocate 2 memory buffers for samples :
0x76876000
0x7687a000

i create 2 buffers of type AudioOutBuffer:
0x1ea73f60
0x1ea73f88

first AudioOutBuffer values:
next = 0
buffer = 0x76876000
buffer_size = 0x2580
size = 9600
offset = 0

second AudioOutBuffer values:
next = 0
buffer = 0x7687a000
buffer_size = 0x2580
size = 9600
offset = 0


each buffer is appended to audio system

the released buffer has address = 0x1ea73fd8

i wait for 3 VBLs

i get back 1 buffer ( "num" coming from getreleased = 1 ) with no error

&released still equals to : 0x1ea73fd8

released itself = 0x1ea73f20
released.next = 0x1ea73e68
released.buffer = 0
released.buffer_size = 0
released.data_size = 0
released.data_offset = 0

i wait 3 more VBLs
i getreleased 1 more buffer:

&released still equals to : 0x1ea73fd8

released itself = 0x1ea73f20
released.next = 0x1ea73e68
released.buffer = 0
released.buffer_size = 0
released.data_size = 0
released.data_offset = 0

from libnx.

plutooo avatar plutooo commented on May 14, 2024

I'll relay this to hexkyz

from libnx.

yellows8 avatar yellows8 commented on May 14, 2024

208daf6

from libnx.

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.