Code Monkey home page Code Monkey logo

Comments (6)

 avatar commented on July 26, 2024

Hi

I've just had the same problem and am now using kAudioSessionCategory_MediaPlayback instead of kAudioSessionCategory_PlayAndRecord, so that I now can use the built in speakers of the iPhone. I had to hotfix the code to remove checking for input. I do not post this code here because I just did this really quick and I do not require input, just playback. My fixes are not eligible to be merged in the main repository.

I had to comment out a few lines in checkSessionProperties, below // Check the number of input channels.

In init, i commented the call out the call to ifAudioInputIsAvailableThenSetupAudioSession and did the setup right in init like this:

CheckError( AudioSessionInitialize(NULL, NULL, sessionInterruptionListener, self), "Couldn't initialize audio session");
[self setupAudio] ;
[self play] ;

In setupAudio, i commented the call to AudioUnitSetProperty below // Enable input

Might be helpful for somebody else.

best, sn-e5

from novocaine.

alexbw avatar alexbw commented on July 26, 2024

Any more thought on this?

from novocaine.

ndonald2 avatar ndonald2 commented on July 26, 2024

The open pull request contains an implementation of how to explicitly set the output route. Worth checking out.

from novocaine.

alexbw avatar alexbw commented on July 26, 2024

Aha. I've used that in separate projects, I should merge it in explicitly
to Novocaine.
[audioManager setRoute:@"blahblah"] would be pretty good. I'll make it high
priority.

On Thu, May 23, 2013 at 1:25 PM, Nick D. [email protected] wrote:

The open pull request contains an implementation of how to explicitly set
the output route. Worth checking out.


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

from novocaine.

ndonald2 avatar ndonald2 commented on July 26, 2024

Cool, that would definitely be useful. Not sure you need to key it off of your own strings though, could just use the standard route enum type as the argument.

from novocaine.

ndonald2 avatar ndonald2 commented on July 26, 2024

Or map the enum to something more readable.

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.