Lines Matching +full:sense +full:- +full:freq
1 // SPDX-License-Identifier: GPL-2.0
3 * Mac bong noise generator. Note - we ought to put a boingy noise
6 * ----------------------------------------------------------------------
10 * Juergen Mellinger (juergen.mellinger@t-online.de)
27 * (hint: interpolate or hardwire [0 -> Pi/2[, it's symmetric)
31 0, -39, -75, -103, -121, -127, -121, -103, -75, -39
44 static unsigned long mac_bell_phase; /* 0..2*Pi -> 0..0x800 (wavetable size) */
75 * this makes no sense here, because we have to set the default sample in mac_init_asc()
78 switch ( macintosh_config->ident ) in mac_init_asc()
106 * current location of the Apple Sound Chip--ASC--in other Macs.) The in mac_init_asc()
111 * Macintosh models have 16-bit audio input and output capability in mac_init_asc()
112 * because of the AT&T DSP3210 hardware circuitry and the 16-bit Singer in mac_init_asc()
115 * 16-bit I/O functionality. The PowerBook 500 series computers in mac_init_asc()
116 * support 16-bit stereo output, but only mono input." in mac_init_asc()
121 * --David Kilzer in mac_init_asc()
150 mac_asc_wave_tab[ i + 0x400 ] = 0xFF - i / 4; in mac_init_asc()
164 void mac_mksound( unsigned int freq, unsigned int length ) in mac_mksound() argument
166 __u32 cfreq = ( freq << 5 ) / 468; in mac_mksound()
181 mac_special_bell( freq, length, 128 ); in mac_mksound()
185 if ( freq < 20 || freq > 20000 || length == 0 ) in mac_mksound()
227 static void mac_quadra_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_quadra_start_bell() argument
240 mac_bell_phasepersample = ( freq * sizeof( mac_asc_wave_tab ) ) / mac_asc_samplespersec; in mac_quadra_start_bell()
289 if ( mac_bell_duration-- > 0 ) in mac_quadra_ring_bell()
294 mac_asc_regs[ 0 ] = mac_asc_wave_tab[ mac_bell_phase & ( sizeof( mac_asc_wave_tab ) - 1 ) ]; in mac_quadra_ring_bell()
306 * AV code - please fill in.
308 static void mac_av_start_bell( unsigned int freq, unsigned int length, unsigned int volume ) in mac_av_start_bell() argument