当前位置: 首页>>代码示例>>Java>>正文


Java PdBase.release方法代码示例

本文整理汇总了Java中org.puredata.core.PdBase.release方法的典型用法代码示例。如果您正苦于以下问题:Java PdBase.release方法的具体用法?Java PdBase.release怎么用?Java PdBase.release使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.puredata.core.PdBase的用法示例。


在下文中一共展示了PdBase.release方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: stop

import org.puredata.core.PdBase; //导入方法依赖的package包/类
public void stop() {
    MLog.d(TAG, "stopping Pdaudio");
    synchronized(lock) {
        /* make sure to release all resources */
        stopAudio();
        if (patch != 0) {
            PdBase.closePatch(patch);
            patch = 0;
        }
        myDispatcher.release();
        PdBase.release();
        try {
            getContext().unbindService(serviceConnection);
        } catch (IllegalArgumentException e) {
            // already unbound
            pdService = null;
        }
    }
}
 
开发者ID:victordiaz,项目名称:phonk,代码行数:20,代码来源:PPureDataBackupNewer.java

示例2: stop

import org.puredata.core.PdBase; //导入方法依赖的package包/类
public void stop() {
    MLog.d(TAG, "stopping audio");
    try {
        MLog.d(TAG, "stopping audio 1");

        if (pdService != null) {
            MLog.d(TAG, "stopping audio2");

            pdService.stopAudio();
            MLog.d(TAG, "stopping audio 3");

            PdBase.release();
            MLog.d(TAG, "stopping audio 4");

            if (pdConnection != null) {
                pdService.unbindService(pdConnection);
                MLog.d(TAG, "stopping audio 5");

            }
            MLog.d(TAG, "stopping audio 6");


        }
    } catch (IllegalArgumentException e) {
        // already unbound
        pdService = null;
        MLog.d(TAG, "stopping audio 7");
        MLog.d(TAG, e.toString());
    }
}
 
开发者ID:victordiaz,项目名称:phonk,代码行数:31,代码来源:AudioServicePd.java

示例3: stop

import org.puredata.core.PdBase; //导入方法依赖的package包/类
public void stop() {
    PdBase.closePatch(mPatch);
    myDispatcher.release();
    stopAudio();
    PdAudio.release();
    PdBase.release();
}
 
开发者ID:victordiaz,项目名称:phonk,代码行数:8,代码来源:PPureData.java

示例4: cleanup

import org.puredata.core.PdBase; //导入方法依赖的package包/类
private void cleanup() {
	// let the screen blank again
	runOnUiThread(new Runnable() {
		@Override
		public void run() {
			getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
		}
	});
	// make sure to release all resources
	if (pdService != null) {
		pdService.stopAudio();
	}
	for(PdDroidPatchView view : patchviews)
	{
		view.getPatch().close();
	}
	
	PdBase.sendMessage("pd", "quit", "bang");
	PdBase.release();
	try {
		unbindService(serviceConnection);
	} catch (IllegalArgumentException e) {
		// already unbound
		pdService = null;
	}
	
	// release midi
	usbMidiManager.destroy();
	
	// release the lock on wifi multicasting
	NetworkHelper.releaseWifiMulticast();
}
 
开发者ID:b2renger,项目名称:PdDroidPublisher,代码行数:33,代码来源:PdDroidParty.java

示例5: dispose

import org.puredata.core.PdBase; //导入方法依赖的package包/类
@Override
public void dispose() {
	//Log.d("dispose()", "Dispose!");
	PdBase.setReceiver(null);
	PdAudio.release();
	PdBase.release();
	}
 
开发者ID:manhluong,项目名称:pd-for-libgdx,代码行数:8,代码来源:GdxPDAndroid.java

示例6: onDestroy

import org.puredata.core.PdBase; //导入方法依赖的package包/类
@Override
protected void onDestroy() {
  if (patchfield != null) {
    try {
      module.release(patchfield);
    } catch (RemoteException e) {
      e.printStackTrace();
    }
  }
  PdBase.release();
  super.onDestroy();
}
 
开发者ID:google,项目名称:patchfield,代码行数:13,代码来源:PdSampleActivity.java

示例7: cleanup

import org.puredata.core.PdBase; //导入方法依赖的package包/类
public void cleanup() {
	// make sure to release all resources
	PdAudio.stopAudio();
	PdBase.release();
}
 
开发者ID:brunorohde,项目名称:BITSLC,代码行数:6,代码来源:PureDataManager.java

示例8: cleanup

import org.puredata.core.PdBase; //导入方法依赖的package包/类
private void cleanup() {
  PdAudio.release();
  PdBase.release();
}
 
开发者ID:thillerson,项目名称:dynamic-sound-android,代码行数:5,代码来源:PdInterface.java


注:本文中的org.puredata.core.PdBase.release方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。