Changeset 353 for GPL/branches/uniaud32-2.0/lib32/sound.c
- Timestamp:
- Apr 28, 2008, 9:38:30 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.0/lib32/sound.c
r352 r353 809 809 pHandle->doublesamplesize = samplesize * 2; 810 810 pHandle->doublesamplesize *= pHwParams->ulNumChannels; 811 // periodbytes = pHwParams->ulPeriodSize; 812 // periodsize = bytes_to_samples(periodbytes); 813 periodsize = pHwParams->ulPeriodSize; 814 periodbytes = samples_to_bytes(periodsize); 811 periodbytes = pHwParams->ulPeriodSize; 812 periodsize = bytes_to_samples(periodbytes); 815 813 // checking number of channels 816 814 … … 948 946 bufsize = hw_param_interval((¶ms), SNDRV_PCM_HW_PARAM_BUFFER_BYTES)->max; 949 947 950 #if 0951 948 if(periodsize) { 952 949 nrperiods = bufsize/periodbytes; … … 958 955 return OSSERR_INVALID_PARAMETER; 959 956 } 960 #else 961 nrperiods = 3; 962 #endif 957 963 958 //check nr of periods against lower and upper boundaries 964 959 minnrperiods = hw_param_interval((¶ms), SNDRV_PCM_HW_PARAM_PERIODS)->min;
Note:
See TracChangeset
for help on using the changeset viewer.