From: donaldlf@cs.rose-hulman.edu
Subject: Re: Getting a Soundblaster PCI128 to work on a Ruffian machine
Date: 1999/05/12 [thread overview]
Message-ID: <7hc6cq$8nv$1@nnrp1.deja.com> (raw)
In-Reply-To: 37392097.BE805CEC@systor.com
> Try the alsa driver (http://www.alsa-project.org/). I get my PCI64
> work with this driver on my Alpha-Box.
> You additionally need a patch for mpg123!
> Just have a look at the alsa page ....
Umm no patch need for mpg123 there is a patch for the current
development relase of ALSA though.
--- kernel/seq/seq_timer.c Mon Jan 4 14:38:53 1999
+++ sr/kernel/seq/seq_timer.c Fri Mar 5 13:38:26 1999
@@ -116,20 +116,18 @@
tmr = q->timer;
- if (tmr != NULL) {
- if (tmr->running) {
- double delta_time;
+ if (tmr != NULL && tmr->running) {
+ long delta_time;
- /* update timer */
- snd_seq_inc_real_time(&tmr->cur_time,
&period);
- timers_running = 1;
+ /* update timer */
+ snd_seq_inc_real_time(&tmr->cur_time, &period);
+ timers_running = 1;
- /* calculate current tick */
- /* FIXME: use of floating point stuff,
illegal i
n kernel (??) */
- if (tmr->tempo > 0) {
- delta_time =
tmr->cur_time.tv_sec - tmr-
>tempo_time.tv_sec + (1.0E-9 * (double) (tmr->cur_time.tv_nsec -
tmr->tempo_time
.tv_nsec));
- tmr->cur_tick = tmr->tempo_tick
+ (tmr->
ppq * delta_time * 1.0E6 / tmr->tempo);
- }
+ /* calculate current tick */
+ if (tmr->tempo > 0) {
+ delta_time = (tmr->cur_time.tv_sec -
+tmr->tempo_time.tv_sec) * 1000;
+ delta_time += (tmr->cur_time.tv_nsec -
+tmr->tempo_time.tv_nsec)/1000000;
+ tmr->cur_tick = tmr->tempo_tick +
(tmr->ppq *
+delta_time * 1000 / tmr->tempo);
}
}
}
--== Sent via Deja.com http://www.deja.com/ ==--
---Share what you know. Learn what you don't.---
prev parent reply other threads:[~1999-05-12 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-05-11 4:00 Getting a Soundblaster PCI128 to work on a Ruffian machine Constantine Vetoshev
1999-05-12 4:00 ` Alex Meisel
1999-05-12 4:00 ` donaldlf [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox