Example #1
0
	void AudioDevice::stopAllAudio()
	{
		stopStreams();
		stopSounds();
		JL_DEBUG_LOG("Stopped all audio playback");

		audioCleanup();
	}
Example #2
0
void AkVCam::PluginInterface::destroyDevice(const std::string &deviceId)
{
    AkLoggerLog("AkVCam::PluginInterface::destroyDevice");

    for (auto it = this->m_devices.begin(); it != this->m_devices.end(); it++) {
        auto device = *it;

        std::string curDeviceId;
        device->properties().getProperty(kCMIODevicePropertyDeviceUID,
                                         &curDeviceId);

        if (curDeviceId == deviceId) {
            device->stopStreams();
            device->registerObject(false);
            device->registerStreams(false);
            this->m_devices.erase(it);

            break;
        }
    }
}