Hello everybody,
I’m new on the list and already got the first problem.
I’m writing sound drivers for UFO:Alien Invasion
( http://www.ufoai.net )- the sdl sound works good on some machines -
but on some other the samples are not power of two (driver is producing
noises).
these are some infos from a working system:
------snip------------
]soundinfo
1 stereo
2048 samples
130048 samplepos
16 samplebits
1 submission_chunk
48000 speed
0x1a137fd0 dma buffer
]cvarlist snd
- M sndbits “16”
- M sndspeed “”
- M sndchannels “2”
- M snddevice “default”
-
snd_ref "sdl"
------snap---------------
on none working systems the samples are 1880 e.g.
How can i fix this? You can have a look at the code at:
http://svn.sourceforge.net/viewvc/ufoai/ufoai/trunk/src/ports/linux/snd_sdl.c?view=markup
the driver loader is here:
http://svn.sourceforge.net/viewvc/ufoai/ufoai/trunk/src/client/snd_ref.c?view=markup
thanks you any help and any advice
martin–
http://www.ufoai.net
UIN: 68877410
Jabber: @Martin_Gerhardy
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060729/b1fb6960/attachment.pgp