Re: Tralala tralala
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: Tralala tralala

From: Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at>
Date: Fri Sep 23 2005 - 12:22:59 CEST

Steve Landers <steve@DigitalSmarties.com> wrote:
> Andreas Leitgeb wrote:
>> Does muzic treat a noteon with volume 0 just like a noteoff?
> yes
Good thing so, then :-)
Lots of midi-files are (semantically) screwed that way.

>> Btw, "tclkit muzic play" does not produce any sound on my
>> linux-machine :-(
>> fluidsynth: error: Can't set the sample rate
>> fluidsynth: warning: Failed to pin the sample data to RAM; swapping is possible.
>> Possibly, my soundcard only accepts 48000kHz :-(
> Or you don't have permission to write to the sound device.

If that were the cause, I'd expect a more specific error-message.

> Depending on your Linux distro you might need to use a multiplexor like
> artsd

To disperse further speculation, here's an excerpt of the strace-log:
 open("/dev/dsp", O_WRONLY) = 5
 ioctl(5, SNDCTL_DSP_SETFRAGMENT, 0xbfffd388) = 0
 ioctl(5, SNDCTL_DSP_SETFMT or SOUND_PCM_READ_BITS, 0xbfffd384) = 0
 ioctl(5, SOUND_PCM_READ_CHANNELS, 0xbfffd380) = 0
 ioctl(5, SNDCTL_DSP_SPEED or SOUND_PCM_READ_RATE, 0xbfffd37c) = 0
 write(2, "fluidsynth: error: Can\'t set the"..., 45) = 45

furthermore, esd upon startup writes:
 unsupported playback rate: 44100
 Audio device open for 44.1Khz, stereo, 16bit failed
 Trying 44.1Khz, 8bit stereo.
 unsupported sound format: 32
 Audio device open for 44.1Khz, stereo, 8bit failed
 Trying 48Khz, 16bit stereo.
and esddsp muzic.kit then also gives sound...

So, the question is:
 Is there a way for muzic to adapt itself to other sample-rates,
 without resorting to wrappers?
 
Received on Thu Sep 29 14:38:49 2005