/* $Id$ */ /* * Copyright (C) 2008-2012 Teluu Inc. (http://www.teluu.com) * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* * This is the implementation of BlackBerry 10 (BB10) audio device. * Original code was kindly donated by Truphone Ltd. (http://www.truphone.com) * The key methods here are bb10_capture_open, bb10_play_open together * with the capture and play threads ca_thread_func and pb_thread_func */ #include #include #include #include #include #include #if defined(PJMEDIA_AUDIO_DEV_HAS_BB10) && PJMEDIA_AUDIO_DEV_HAS_BB10 != 0 #ifndef PJ_BBSDK_VER /* Format: 0xMMNNRR: MM: major, NN: minor, RR: revision */ # define PJ_BBSDK_VER 0x100006 #endif #include #include #include #include #include #include #include #if PJ_BBSDK_VER >= 0x100006 #include