This is checked into Head and Atlas310. The change affects only Android
build.
fxd
s...@real.com wrote:
Overview:
This is the change to use IHXAudioDeviceManager to replace the default
audio device with one created by TLC, so that the AudioSink object passed
to TLC by media framework can be used by audio device as output
destination.
A couple of notes -
1. CHXAudioDevice uses a global preference object (z_pIHXPrefs) to access
"SoundDriver" setting, though its Create method is passed in a pPrefs
pointer already. This is a bit strange and also the reason why TLC code
has to declare a dummy z_pIHXPrefs to keep the linker happy. TLC doesn't
actually use CHXAudioDevice::Create method so the NULL ref isn't an issue.
2. Our core/audiosvc call SetGranuality on internal audio device it
creates but not on custom audio device installed through
IHXAudioDeviceManager. This causes problems for Android audio device
because it is derived from unix andio device which in turn relies on
granularity to be set to work. I fashioned a hack to set a default
granularity if SetGranuality is not called. I tried different granularity
values. With threaded unix audio, the granularity value doesn't seem to
matter. The correct fix for this would involve fixing the SetGranuality
call in audiosvc, which we probably don't want to do for this porting
project.
Also after this change (and the last video site related change), there is
some dead code in TLC now. I'll do the cleanup in a different CR later.
fxd
Branches: Head, hxclient_3_1_0_atlas
Files modified:
player/kit/android/PlayerDriver.cpp
player/kit/andorid/android.pcf
audio/device/platform/unix/audAndroid.cpp
audio/device/pub/platform/unix/audAndriod.h
------------------------------------------------------------------------
_______________________________________________
Android-port-dev mailing list
android-port-...@lists.helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/android-port-dev
_______________________________________________
Audio-dev mailing list
Audio-dev@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/audio-dev