45
edits
| Line 86: | Line 86: | ||
NPERR ret = NPN_GetValue(instance, NPNVPepperExtensions, &pepper); | NPERR ret = NPN_GetValue(instance, NPNVPepperExtensions, &pepper); | ||
if (NPERR_NO_ERROR == ret) { | if (NPERR_NO_ERROR == ret) { | ||
/* successfully obtained Pepper extensions, now acquire audio... */ | /* successfully obtained Pepper extensions, now acquire audio... */ | ||
audio = pepper->acquireDevice(NPAudioDeviceID); | audio = pepper->acquireDevice(NPAudioDeviceID); | ||
} else { | } else { | ||
/* Pepper extensions are not available */ | /* Pepper extensions are not available */ | ||
} | } | ||
/* check for acquisition of audio device interface */ | /* check for acquisition of audio device interface */ | ||
if (NULL != audio) { | if (NULL != audio) { | ||
/* Pepper audio device interface is available */ | /* Pepper audio device interface is available */ | ||
... | ... | ||
</pre> | </pre> | ||
edits