summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/audio/audiodef.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/dev/audio/audiodef.h b/sys/dev/audio/audiodef.h
index 3b0700430ca..a88c2ab2a30 100644
--- a/sys/dev/audio/audiodef.h
+++ b/sys/dev/audio/audiodef.h
@@ -1,4 +1,4 @@
-/* $NetBSD: audiodef.h,v 1.12 2020/03/05 15:18:55 riastradh Exp $ */
+/* $NetBSD: audiodef.h,v 1.13 2020/03/28 08:35:36 isaki Exp $ */
/*
* Copyright (C) 2017 Tetsuya Isaki. All rights reserved.
@@ -44,13 +44,21 @@
/*
* Hardware blocksize in msec.
- * We use 40 msec as default. (1 / 40ms) = 25 = 5^2.
+ * We use 10 msec as default for most platforms. But it's too severe for
+ * most m68k.
+ *
+ * 40 msec was initially choosen for the following reason:
+ * (1 / 40ms) = 25 = 5^2. Thus, the frequency is factored by 5.
* In this case, the number of frames in a block can be an integer
* even if the frequency is a multiple of 100 (44100, 48000, etc),
* or even if 15625Hz (vs(4)).
*/
#if !defined(AUDIO_BLK_MS)
-#define AUDIO_BLK_MS 40
+# if defined(__m68k__)
+# define AUDIO_BLK_MS 40
+# else
+# define AUDIO_BLK_MS 10
+# endif
#endif
/*