Back to project page dynamic-sound-android.
The source code is released under:
MIT License
If you think the Android project dynamic-sound-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.tackmobile.androidpiano; //w w w . j a v a 2s . c o m import org.puredata.android.io.PdAudio; import android.app.Activity; import android.os.Bundle; import com.tackmobile.androidpiano.audio.PdInterface; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); PdInterface.getInstance().initialize(this); } @Override protected void onStart() { super.onStart(); PdAudio.startAudio(this); } @Override protected void onStop() { PdAudio.stopAudio(); super.onStop(); } @Override protected void onDestroy() { PdInterface.getInstance().destroy(); super.onDestroy(); } }