本文整理汇总了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;
}
}
}
示例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());
}
}
示例3: stop
import org.puredata.core.PdBase; //导入方法依赖的package包/类
public void stop() {
PdBase.closePatch(mPatch);
myDispatcher.release();
stopAudio();
PdAudio.release();
PdBase.release();
}
示例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();
}
示例5: dispose
import org.puredata.core.PdBase; //导入方法依赖的package包/类
@Override
public void dispose() {
//Log.d("dispose()", "Dispose!");
PdBase.setReceiver(null);
PdAudio.release();
PdBase.release();
}
示例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();
}
示例7: cleanup
import org.puredata.core.PdBase; //导入方法依赖的package包/类
public void cleanup() {
// make sure to release all resources
PdAudio.stopAudio();
PdBase.release();
}
示例8: cleanup
import org.puredata.core.PdBase; //导入方法依赖的package包/类
private void cleanup() {
PdAudio.release();
PdBase.release();
}