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

Reply via email to