version 1.2, 2000/03/25 02:29:49 |
version 1.3, 2000/11/17 19:11:33 |
|
|
<link rev="made" HREF="mailto:www@openbsd.org"> |
<link rev="made" HREF="mailto:www@openbsd.org"> |
</head> |
</head> |
<body text="#000000" bgcolor="#FFFFFF" link="#23238E"> |
<body text="#000000" bgcolor="#FFFFFF" link="#23238E"> |
<img height=30 width=141 src=images/smalltitle.gif alt="[OpenBSD]" > |
<img height=30 width=141 src=images/smalltitle.gif alt="[OpenBSD]"> |
|
|
<h1>Porting audio applications to OpenBSD</h1> |
<h1>Porting audio applications to OpenBSD</h1> |
|
|
|
|
to get a bit of look-ahead on what you're going to play, you can |
to get a bit of look-ahead on what you're going to play, you can |
adjust the volume boost on the fly, you just have to make sure |
adjust the volume boost on the fly, you just have to make sure |
that the boost factor stays at a low frequency compared to the |
that the boost factor stays at a low frequency compared to the |
sound you want to play, and that you get absolutely <emph>no |
sound you want to play, and that you get absolutely <em>no |
overflows</emph> -- those will always sound much worse than the |
overflows</em> -- those will always sound much worse than the |
improvement you're trying to achieve.<br> |
improvement you're trying to achieve.<br> |
As sound volume perception is logarithmic, using arithmetic shifts is usually |
As sound volume perception is logarithmic, using arithmetic shifts is usually |
enough. If your data is signed, you should explicitly code the shift as |
enough. If your data is signed, you should explicitly code the shift as |