Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (14 sloc) 0.258 kB
#include <stdlib.h>
static int RATE = -1;
#define DEFAULT_RATE 44100
void get_rate(void)
{
char *str;
str = getenv("RATE");
if (str == NULL)
str = getenv("SR");
if (str == NULL || atoi(str) <= 0)
RATE = DEFAULT_RATE;
else
RATE = atoi(str);
}
Jump to Line
Something went wrong with that request. Please try again.