Thanks mawg: SoundBlaster 16 wav files get stuck in W98SE

Thanks mawg: SoundBlaster 16 wav files get stuck in W98SE

Post by No Spa » Mon, 22 Dec 2003 14:12:39


If "mawg" and Bill T are still around, I just wanted to say thanks for
an old post (4/5/03) that helped me fix my SB64-gold IRQ conflict (which
manifested itself as: "a wav file begins to play, but quits after about
1/10 of a second. After that, other wav files cause a
message stating that the sound card may be in use. When I go to the
volume indicator for wav files, the indicator to the right of the
volume slide shows something "stuck" there.")

mawg recommened: "IRQ 9 is not a good interrupt for a sound card. It can
conflict with IRQ 2 because they're essentially the same IRQ.
I think this is more of a problem with Win 95/98 than with Win 2000/XP.
If your SB16 is the old ISA type, it should probably be on either
IRQ 5 or IRQ 7. If it's the PCI type, just move it off of IRQ 9."

I moved it to 7 like Bill T did and it works! Thanks so much.
I wasted about 3 hours uninstalling and re-installing drivers, swaping
sound cards, etc. FYI, a SB16, SB32, and SB64 were all exhibiting the
same problem, so I at least figured out it wasn't the sound card, but I
never would have thought to change the IRQ when no conflicts were being
reported, and I wouldn't have thought to use the same IRQ as the printer.

-- Mark
 
 
 

1. Software to convert 24 bit WAV to 16 bit WAV?

2. Handling 16-bit .WAV audio files

I'm trying to handle 16-bit .WAV format audio files. I've started
with the code below (from pythonapocrypha.com). I can successfully
read in the 16-bit code, using Numeric.fromstring, as they suggest in
the comments below.

However, I can't manage to write the samples, I always seem to get 32
bits per sample (yes, it is set to mono!).

It seems that I need to use Numeric.tostring, with an option to set it
to 'Numeric.Int16', but that is only available in Numeric.fromstring?

Do I need to convert the array somehow to a 16 bit signed integer
type?

What should I be doing to convert my final array to a suitable string
of 16-bit values?

Nigel


########################################
import Numeric
import wave

BUFFER_SIZE=5000
# NB: This is an 8-bit stereo .wav file. If it had a different
# sample size, such as 16-bits, we would need to convert the
# sequence of bytes into an array of 16-bit integers by
# calling Numeric.fromstring(Data,Numeric.Int16)
InFile=wave.open("LoudLeft.wav","rb")
OutFile=wave.open("QuietLeft.wav","wb")
OutFile.setparams(InFile.getparams())
while 1:
# Read audio data as a string of bytes:
Data=InFile.readframes(BUFFER_SIZE)
if len(Data)==0:
break
# Create an array based on the string:
Frames=Numeric.array(Data,
typecode=Numeric.UnsignedInt8,savespace=1)
# Take every other frame to get just the left side. And,
# divide each one by 2. (We would like to use
# Numeric.divide(Frames[::2],2), but we can't,
# because the returned array would have float type).
Frames[::2] = Frames[::2]/2
OutFile.writeframes(Frames.tostring())
InFile.close()
OutFile.close()

3. WMP10: Can't burn 16-bit, 22.05kHz .wav files to CD

4. 16 bit wav file reading

5. 16 bit sample from a WAV file

6. 16 bit PCM to wav file conversion

7. Cannot get my Soundblaster 16 or CD to work in windows XP

8. HP Vectra XU integrated Soundblaster 16

9. Soundblaster 16 and kernel 2.6

10. SOundBlaster Vibra 16 w/ jumpers

11. Fedora C 4, Soundblaster 16 - again :-(

12. Solved: soundblaster 16 and kernel 2.6

13. Soundblaster 16 in Linux

14. [9fans] SoundBlaster 16 on QEMU not working

15. Fedora C 4, Soundblaster 16 not detected