I suppose that you can easily get the reference to AudioService. I think you've just missed the appropriate part of the code:
private static IAudioService getService()
{
if (sService != null) {
return sService;
}
IBinder b = ServiceManager.getService(Context.AUDIO_SERVICE);
sService = IAudioService.Stub.asInterface(b);
return sService;
}
You can see that sService
will be a reference to IAudioService. Similarly, in your application you can get direct reference to IAudioService. However, I do not understand why you may need to do this.