ToiAudioOutputService.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TOIAUDIOOUTPUTSERVICE_IDL
00016 #define TOIAUDIOOUTPUTSERVICE_IDL
00017
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiInvalidPreconditionException.idl"
00020 #include "TToiOperationNotSupportedException.idl"
00021 #include "TToiUnhandledValueException.idl"
00022 #include "ToiApplicationService.idl"
00023 #include "ToiEventTarget.idl"
00024
00025
00026 interface ToiAudioOutputServiceAudioConnectionDescriptor;
00027 interface ToiAudioOutputConfiguration;
00028 interface ToiAudioOutputConfigurationSession;
00029
00037
00038
00041 interface ToiAudioOutputService : ToiEventTarget {
00042
00045
00049 const long ON_CONFIGURATION_CHANGED = 3100;
00050
00054 const long ON_VOLUME_CHANGED = 3101;
00055
00059 const long ON_MUTE_STATE_CHANGED = 3102;
00060
00064 const long ON_HDMI_CONNECTION_STATUS_CHANGED = 3103;
00065
00069 const long ON_LATENCY_CHANGED = 3104;
00070
00072
00074 typedef long TToiAudioConnectionId;
00075
00079
00080 typedef long TToiAudioConnectionType;
00083
00089
00090 const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_ANALOG = 0;
00091
00097
00098 const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_SPDIF = 1;
00099
00105
00106 const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_HDMI = 2;
00107
00114
00115 const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_DECODER = 3;
00116
00123
00124 const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_BUFFER = 4;
00125
00131
00132 const TToiAudioConnectionType AUDIO_CONNECTION_TYPE_I2S = 5;
00133
00135
00138
00139 typedef long TToiAudioConnectionDirection;
00142
00148
00149 const TToiAudioConnectionDirection AUDIO_CONNECTION_DIRECTION_INPUT = 0;
00150
00156
00157 const TToiAudioConnectionDirection AUDIO_CONNECTION_DIRECTION_OUTPUT = 1;
00158
00160
00161 typedef sequence < ToiAudioOutputServiceAudioConnectionDescriptor > TToiAudioConnectionDescriptorSequence;
00162
00169
00170 TToiAudioConnectionDescriptorSequence getConnections();
00171
00177
00178
00179
00180
00181 ToiAudioOutputConfiguration getConfiguration();
00182
00197
00198
00199
00200
00201
00202 ToiAudioOutputConfigurationSession createConfigurationSession()
00203 raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00204
00224 void setVolume(in TToiAudioConnectionId connectionId,
00225 in unsigned long level)
00226 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00227
00244
00245 unsigned long getVolume(in TToiAudioConnectionId connectionId)
00246 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00247
00262 void setMuteState(in TToiAudioConnectionId connectionId,
00263 in boolean state)
00264 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00265
00280
00281 boolean getMuteState(in TToiAudioConnectionId connectionId)
00282 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00283
00307 void setLatency(in TToiAudioConnectionId connectionId,
00308 in long latency)
00309 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00310
00327
00328 long getLatency(in TToiAudioConnectionId connectionId)
00329 raises (TToiInvalidArgumentException, TToiOperationNotSupportedException);
00330
00331 };
00332
00333 #endif