Hello, Just for my information, it's very important for me, to understand if it's possible to increase the buffer size up to 65536. And understand, if the limitation is due to the driver or hardware sound card.
Sometime, depend which computer is used, i have 65536 (intel ICH5 intel8x0) For my application i need 65536, i want to buy a sound card with 65536, how i can know if this value is possible before buying the sound card. for your information, i use API ALSA, excuse me for the code. Bests Regards Thank's a lot lot lot :) Ludovic LABORDE _____ Trainee IT Developpement Sophia Antipolis FRANCE [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> THALES UNDERWATER SYSTEMS www.thales-underwater.com <http://www.thales-underwater.com/> -----Original Message----- From: James Courtier-Dutton [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 22, 2006 9:48 AM To: Laborde Ludovic Cc: 'alsa-user@lists.sourceforge.net' Subject: Re: [Alsa-user] BUFFER SIZE HELP! SoundBlaster Audigy SE SB0570 & alsa-driver-1.0 .11 & snd-ca0106 Laborde Ludovic wrote: > Hello, > > I have Sound Blaster Audigy SE and when a launch this code, my buffer is > 2046. > > Can you test this for me and you return your SizeBuffer ? > > Because i think that my buffer it's too small. > > > Regards > > > > > > ---- File SizeBuffer.c ----- > #include <sys/soundcard.h> > #include <fcntl.h> > #include <stdio.h> > #include <unistd.h> > > int main () { > int faudio; > int err; > audio_buf_info info; > faudio = open( "/dev/audio", O_WRONLY ); > err=ioctl( faudio, SNDCTL_DSP_GETOSPACE, &info); > printf("bytes %d err : %d faudio: %x \n", info.bytes,err,faudio ); > return 0; > } > Firstly, you should be using the ALSA api and not the OSS one. Secondly, you cannot increase the hardware size, it is a hardware limitation for that card. The card has up to 8 periods, with a max length for each period. So, instead of using 2 periods, try using 8. You will then get 4 times the buffer size. periods and buffer size are all set using the ALSA api. James ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Alsa-user mailing list Alsa-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/alsa-user