summaryrefslogtreecommitdiff
path: root/comms/fldigi/files/patch-src_soundcard_sound.cxx
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2006-12-22 02:47:33 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2006-12-22 02:47:33 +0000
commitcdcb91922078c3340e4a51d1ef396c987d8d3e9a (patch)
tree4aa3f6b6ca02223238a280d2c832529048eba771 /comms/fldigi/files/patch-src_soundcard_sound.cxx
parent- Update MASTER_SITES (diff)
Add fldigi 1.11, a digital decoder for psk, cw, psk31, olivia.
Submitted by: Diane Bruce <db at db.net>
Diffstat (limited to 'comms/fldigi/files/patch-src_soundcard_sound.cxx')
-rw-r--r--comms/fldigi/files/patch-src_soundcard_sound.cxx30
1 files changed, 30 insertions, 0 deletions
diff --git a/comms/fldigi/files/patch-src_soundcard_sound.cxx b/comms/fldigi/files/patch-src_soundcard_sound.cxx
new file mode 100644
index 000000000000..126aa00e60ae
--- /dev/null
+++ b/comms/fldigi/files/patch-src_soundcard_sound.cxx
@@ -0,0 +1,30 @@
+--- src/soundcard/sound.cxx.orig Tue Dec 19 21:31:04 2006
++++ src/soundcard/sound.cxx Wed Dec 20 18:46:00 2006
+@@ -16,7 +16,9 @@
+
+ try {
+ Open(O_RDONLY);
++#if 0
+ getVersion();
++#endif
+ getCapabilities();
+ getFormats();
+ Close();
+@@ -78,7 +80,7 @@
+ {
+ int sndparam;
+ // Try to get ~100ms worth of samples per fragment
+- sndparam = (int)log2(sample_frequency * 0.1);
++ sndparam = (int)log2((unsigned int)(sample_frequency * 0.1));
+ // double since we are using 16 bit samples
+ sndparam += 1;
+ // Unlimited amount of buffers for RX, four for TX
+@@ -120,7 +122,7 @@
+ void cSound::getVersion()
+ {
+ version = 0;
+- if (ioctl(device_fd, OSS_GETVERSION, &version) == -1) {
++ if (ioctl(device_fd, SOUND_VERSION, &version) == -1) {
+ version = -1;
+ throw SndException("OSS Version");
+ }