1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
--- csound.cpp.orig 2001-12-03 13:40:50.000000000 -0800
+++ csound.cpp 2004-12-06 09:21:49.000000000 -0800
@@ -22,8 +22,9 @@
{
audioformat=AFMT_S16_LE; // 16 Bit little Endian
//audioformat=AFMT_U8;
+char *ratestr = getenv("AUDIORATE");
mode=0; //Mono
-speed=11025;
+speed=(ratestr ? atoi(ratestr) : 11025);
fragsize=BUF_SIZE;
started=FALSE;
-------------------------------------------------------------------------------
--- linpsk-0.7.1/linpsk/csound.cpp.orig 2003-05-02 09:48:11.000000000 -0700
+++ linpsk-0.7.1/linpsk/csound.cpp 2004-12-06 10:02:11.000000000 -0800
@@ -25,6 +25,7 @@
CSound::CSound(int ptt = -1):Input(ptt)
{
+char *ratestr = getenv("AUDIORATE");
#ifdef LINPSK_FOR_MAC
audioformat=ESD_BITS16; // 16 Bit little Endian
mode=ESD_MONO; //Mono
@@ -32,7 +33,7 @@
audioformat=AFMT_S16_LE; // 16 Bit little Endian
mode=0; //Mono
#endif
-speed=11025;
+speed=(ratestr ? atoi(ratestr) : 11025);
fragsize=BUF_SIZE;
started=FALSE;
audio_buffer=0;
|