示例#1
0
def load_exaile_directsound_plugin(presets):
    
    try:
        if platform.architecture()[0] == "32bit":
            plugin_path = os.path.abspath(os.path.join(__file__, '../../../tools/win-installer/libgstexailedirectsoundsink.dll'))
        else:
            plugin_path = os.path.abspath(os.path.join(__file__, '../../../tools/win-installer/libgstexailedirectsoundsink64.dll'))
            
        plugin = gst.plugin_load_file(plugin_path)
        gst.registry_get_default().add_plugin(plugin)
        
    except glib.GError, e:
        logger.error("Error loading custom DirectSound plugin: %s" % str(e))
示例#2
0
def load_exaile_directsound_plugin(presets):

    try:
        if platform.architecture()[0] == "32bit":
            plugin_path = os.path.abspath(
                os.path.join(
                    __file__,
                    '../../../tools/win-installer/libgstexailedirectsoundsink.dll'
                ))
        else:
            plugin_path = os.path.abspath(
                os.path.join(
                    __file__,
                    '../../../tools/win-installer/libgstexailedirectsoundsink64.dll'
                ))

        plugin = gst.plugin_load_file(plugin_path)
        gst.registry_get_default().add_plugin(plugin)

    except glib.GError, e:
        logger.error("Error loading custom DirectSound plugin: %s" % str(e))
示例#3
0
文件: __init__.py 项目: clones/kaa
#
# 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 MER-
# CHANTABILITY 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
#
# -----------------------------------------------------------------------------

import gst
import os

dirname = os.path.dirname(__file__)
# add our gstreamer plugins
gst.plugin_load_file(dirname + '/_gstrecord.so')

# imports from submodules
from version import VERSION
from channel import *
from device import Device
from sink import *
from recording import Recording