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
#include <Windows.h> | |
#include <mmsystem.h> | |
#include <math.h> | |
static BOOL inited = FALSE; | |
static double dhz; | |
void usleep( long us ) | |
{ | |
const double sleep_granularity = 2.0E-3; |
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
""" Copyright (C) 2013 Sturla Molden """ | |
import threading | |
import Queue | |
import pywintypes | |
import win32event | |
import win32com.directsound.directsound as directsound | |
import numpy as np |
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
print 'Hello World!' |