osxaudiosink: use ear speaker on iOS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

osxaudiosink: use ear speaker on iOS

Mailing List SVR
Hi,

in an iOS app if I do something like this:

AVAudioSession *mySession = [AVAudioSession sharedInstance];
NSError *audioSessionError = nil;
[mySession setCategory: AVAudioSessionCategoryPlayAndRecord error: &audioSessionError];
[mySession setActive: YES error: &audioSessionError];

then the audio is routed to the ear speaker, but this configuration has no effect when using osxaudiosink.

osxaudiosink seems to always use the default speaker. Is there a way to use the ear speaker with osxaudiosink?

thanks
Nicola


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: osxaudiosink: use ear speaker on iOS

Mailing List SVR
Solved myself, the key is to set the mode on AVAudioSession,

thanks anyway,

Nicola

Il 04/07/2018 07:33, Mailing List SVR ha scritto:
Hi,

in an iOS app if I do something like this:

AVAudioSession *mySession = [AVAudioSession sharedInstance];
NSError *audioSessionError = nil;
[mySession setCategory: AVAudioSessionCategoryPlayAndRecord error: &audioSessionError];
[mySession setActive: YES error: &audioSessionError];

then the audio is routed to the ear speaker, but this configuration has no effect when using osxaudiosink.

osxaudiosink seems to always use the default speaker. Is there a way to use the ear speaker with osxaudiosink?

thanks
Nicola



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel