• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: Playing through speaker, recording through line in
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Playing through speaker, recording through line in


  • Subject: Fwd: Playing through speaker, recording through line in
  • From: Alex Wiltschko <email@hidden>
  • Date: Mon, 1 Feb 2010 09:55:32 -0500



---------- Forwarded message ----------
From: Alex Wiltschko <alex.bw@gmail.com>
Date: Mon, Feb 1, 2010 at 9:54 AM
Subject: Re: Playing through speaker, recording through line in
To: Aran Mulholland <email@hidden>


Right, I've done the route override already.

But, for the app I'm building, the "headset" input will actually just be a mono line-in signal.
So, in this case, there are no headphones to play the signal back through.

Again, want to acquire audio from the line input, and output audio from the speaker. Possible?

Alex


On Mon, Feb 1, 2010 at 1:54 AM, Aran Mulholland <email@hidden> wrote:
from the audio session services reference -
http://developer.apple.com/iphone/library/documentation/Audio/Conceptual/AudioSessionProgrammingGuide/Cookbook/Cookbook.html



UInt32 audioRouteOverride = kAudioSessionOverrideAudioRoute_Speaker;  // 1

AudioSessionSetProperty (
   kAudioSessionProperty_OverrideAudioRoute,                         // 2
   sizeof (audioRouteOverride),                                      // 3
   &audioRouteOverride                                               // 4
);

--meaning you can override the output of the audio. I have found doing
this i had to then monitor if the headphone was plugged in etc and
redirect.

The user expects the output to come out the headphones if they are plugged in.

aran


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Playing through speaker, recording through line in
      • From: Hamilton Feltman <email@hidden>
  • Prev by Date: Re: AUNetSend/AUNetReceive
  • Next by Date: Re: Simulating Vibrato With Sine Wave
  • Previous by thread: Re: AUNetSend/AUNetReceive
  • Next by thread: Re: Playing through speaker, recording through line in
  • Index(es):
    • Date
    • Thread