Comments (6)
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.
Any more thought on this?
from novocaine.
The open pull request contains an implementation of how to explicitly set the output route. Worth checking out.
from novocaine.
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.
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.
Or map the enum to something more readable.
from novocaine.
Related Issues (20)
- Audio distortion isuue while playing on iphone speaker HOT 1
- 1
- use of @autoreleasepool in renderCallback and inputCallback HOT 1
- inputblock + outputblock + forceOutputToSpeaker = Error: Couldn't render the output unit (-50) HOT 1
- Can't play an audio file that was downloaded from server but the data is the same HOT 1
- Music from the Internet HOT 1
- What exactly comes from the newAudio variable?
- Bluetooth Audio? HOT 3
- updateMeters and averagePowerForChannel equivalents for Novocaine? HOT 2
- Setting deployment target to 8.0 causes demo app to crash HOT 2
- Is there anyway to properly convert the audio array (float*) into UTF 8? HOT 7
- m4a files
- Gapless
- RingBuffer.h - class RingBuffer syntax error HOT 3
- Use of deprecated AudioSession APIs on Novocaine.m HOT 2
- How to 8000hz/16000hz get or put as short* array for audio ?
- Is this library suitable to make a lack-in amplifier from microphone input?
- Couldn't initialize the output unit ('!cat') on Device only HOT 1
- Mac Catalyst (UIKit for Mac) support
- Does default sample rate cause resampling and setting buffer size for minimum latency? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from novocaine.