174 |
// *************** AudioOutputDevice *************** |
// *************** AudioOutputDevice *************** |
175 |
// * |
// * |
176 |
|
|
177 |
AudioOutputDevice::AudioOutputDevice(std::map<String,DeviceCreationParameter*> DriverParameters) { |
AudioOutputDevice::AudioOutputDevice(std::map<String,DeviceCreationParameter*> DriverParameters) |
178 |
|
: EnginesReader(Engines) { |
179 |
this->Parameters = DriverParameters; |
this->Parameters = DriverParameters; |
180 |
} |
} |
181 |
|
|
251 |
int result = 0; |
int result = 0; |
252 |
|
|
253 |
// let all connected engines render audio for the current audio fragment cycle |
// let all connected engines render audio for the current audio fragment cycle |
254 |
const std::set<Engine*>& engines = Engines.Lock(); |
const std::set<Engine*>& engines = EnginesReader.Lock(); |
255 |
#if CONFIG_RT_EXCEPTIONS |
#if CONFIG_RT_EXCEPTIONS |
256 |
try |
try |
257 |
#endif // CONFIG_RT_EXCEPTIONS |
#endif // CONFIG_RT_EXCEPTIONS |
270 |
} |
} |
271 |
#endif // CONFIG_RT_EXCEPTIONS |
#endif // CONFIG_RT_EXCEPTIONS |
272 |
|
|
273 |
Engines.Unlock(); |
EnginesReader.Unlock(); |
274 |
return result; |
return result; |
275 |
} |
} |
276 |
|
|