Example #1
0
    /**
     *  @brief Create an instance of the PXCMAudio interface with data. The application must
     *  maintain the life cycle of the audio data for the PXCMAudio instance.
     *  @param[in]  info	The audio channel information.
     *  @param[in]	data	Optional audio data.
     *  @return The PXCMAudio instance.
     */
    public PXCMAudio CreateAudio(PXCMAudio.AudioInfo info, PXCMAudio.AudioData data)
    {
        IntPtr audio = PXCMSession_CreateAudio(instance, info, data);

        return((audio != IntPtr.Zero) ? new PXCMAudio(audio, true) : null);
    }
Example #2
0
 internal static extern IntPtr PXCMSession_CreateAudio(IntPtr session, PXCMAudio.AudioInfo info, PXCMAudio.AudioData data);