Hello
everybody,
Can you explain me, if it's possible for the sound card Intel AC'97 ICH5/ICH5R
to define a alsa buffersize up to 16384 bytes on (16 bits stereo)
?
because,
i using this functions :
if ((err =
snd_pcm_hw_params_set_format (playbackHandle, playbackHardwareParams,
SND_PCM_FORMAT_S16)) < 0)
{
errorStream << "Cannot set the sample format. Error: " << err;
throw errorString = errorStream.str();
}
{
errorStream << "Cannot set the sample format. Error: " << err;
throw errorString = errorStream.str();
}
if ((err =
snd_pcm_hw_params_set_channels (playbackHandle, playbackHardwareParams, STEREO))
< 0) {
errorStream << "Cannot set the number of channels. Error: " << err;
throw errorString = errorStream.str();
}
errorStream << "Cannot set the number of channels. Error: " << err;
throw errorString = errorStream.str();
}
if ((err =
snd_pcm_hw_params_set_buffer_size_near(playbackHandle, playbackHardwareParams,
&bufferSize)) < 0)
{
errorStream << "Cannot set the buffer size for playback. Error: " << err;
throw errorString = errorStream.str();
}
errorStream << "Cannot set the buffer size for playback. Error: " << err;
throw errorString = errorStream.str();
}
if ((err =
snd_pcm_hw_params_set_period_size_near(playbackHandle, playbackHardwareParams,
&periodSize, &dir)) < 0)
{
errorStream << "Cannot set the period size. Error: " << err;
throw errorString = errorStream.str();
}
errorStream << "Cannot set the period size. Error: " << err;
throw errorString = errorStream.str();
}
Do you think that
all functions, reflects the real bufferSize available hardware ? or It depend on
the audio driver ?
Infos Hardware :
Redhat 4.0 U3 Kernel
2.6
P4 2.66
HT
lspci
: "Audio Card : Intel Coporation 82801EB/ER (ICH5/CH5R)
Ac'97 Audio Controler (rev 02)"
Regards
Trainee IT Developpement
Sophia Antipolis FRANCE
[EMAIL PROTECTED]THALES UNDERWATER SYSTEMS
www.thales-underwater.com
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