Code Monkey home page Code Monkey logo

Comments (4)

ndonald2 avatar ndonald2 commented on July 26, 2024

@alexbw whenever you get a chance I'd like to get your input on this issue.

It seems that CoreAudio internally handles mono summing if the audio is playing through the mono device speaker. Hence, the render callback still gets two buffers to fill. The fix on this branch does the trick, but I'm wondering if novocaine should always request a stereo buffer from its output block, since iOS seems to always want a stereo buffer? So basically the block will always provide stereo data, and in whatever rare case that the callback only wants mono, the summation could then just be handled by novocaine.

I'm not sure if it's the same case for a mono output on OSX, but that seems far less common - it might take some clever configuration to make the default output device mono.

from novocaine.

alexbw avatar alexbw commented on July 26, 2024

I like the proposal, and in the absence of any (long-ago planned) non-IO
block functionality, this makes sense. Originally, I had planned an
expansion where Novocaine-style APIs existed on the front-end of a
multi-channel mixer, which would allow easy stringing together of arbitrary
audio processing functionality. That's just not something I'm ever going to
get to.

I'll take a look at the code soon.

On Tue, Jul 30, 2013 at 1:44 PM, Nick D. [email protected] wrote:

@alexbw https://github.com/alexbw whenever you get a chance I'd like to
get your input on this issue.

It seems that CoreAudio internally handles mono summing if the audio is
playing through the mono device speaker. Hence, the render callback still
gets two buffers to fill. The fix on this branchhttps://github.com/alexbw/novocaine/tree/DeviceChannelOutputFixdoes the trick, but I'm wondering if novocaine should always request a
stereo buffer from its output block, since iOS seems to always want a
stereo buffer? So basically the block will always provide stereo data, and
in whatever rare case that the callback only wants mono, the summation
could then just be handled by novocaine.

I'm not sure if it's the same case for a mono output on OSX, but that
seems far less common - it might take some clever configuration to make the
default output device mono.


Reply to this email directly or view it on GitHubhttps://github.com//issues/52#issuecomment-21808810
.

from novocaine.

alexbw avatar alexbw commented on July 26, 2024

@ndonald2, I've been out of the game for too long. Is this something that still should be merged?

from novocaine.

ndonald2 avatar ndonald2 commented on July 26, 2024

Looks like it's already been merged. I'll go ahead and close this issue.

from novocaine.

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.