We report measurements of the attenuation and velocity near the nematic-smectic-A phase transition in p-cyanobenzylidine-p'-octyloxyaniline (CBOOA). These measurements were performed in the frequency range 0.6-25 MHz as a function of the temperature for various orientations of the CBOOA with respect to the ultrasonic propagation. On the nematic side of the transition the ultrasonic absorption presents a critical increase which is more and more apparent as the frequency is decreased and which reflects the dynamics of critical fluctuations of the order parameter. The critical viscosities are deduced from a systematic study of the various anisotropies in attenuation. It is found that the volume viscosities diverge much faster than the shear vi...