This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CustomActions | |
{ | |
[CustomAction] | |
public static ActionResult BuildIndex(Session session) | |
{ | |
session.Log("Begin building index"); | |
try | |
{ | |
EmbeddedAssembly.Load(string.Format("BuildIndexAction.{0}.SQLite.Interop.dll", Environment.Is64BitProcess ? "x64" : "x86"), "SQLite.Interop.dll"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextBox TextChanged="TextBox_TextChanged" /> | |
<telerik:RadGridView x:Name="grid" CanUserSearch="False" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ShortBuffer mSamples; // the samples to play | |
int mNumSamples; // number of samples to play | |
void playAudio() { | |
new Thread(new Runnable() { | |
@Override | |
public void run() { | |
int bufferSize = AudioTrack.getMinBufferSize(SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO, | |
AudioFormat.ENCODING_PCM_16BIT); | |
if (bufferSize == AudioTrack.ERROR || bufferSize == AudioTrack.ERROR_BAD_VALUE) { |
OlderNewer