- improved device buffer alignment calculation allowing to set as precise device latency as possible
{\r
#define HDA_PACKET_SIZE 128\r
\r
- long packets_total = 10000 * (nSamplesPerSec * nBlockAlign / HDA_PACKET_SIZE);\r
+ //long packets_total = 10000 * (nSamplesPerSec * nBlockAlign / HDA_PACKET_SIZE);\r
long frame_bytes = nFrames * nBlockAlign;\r
long packets;\r
\r
packets = frame_bytes / HDA_PACKET_SIZE;\r
\r
// align to packets count\r
- while (packets && ((packets_total % packets) != 0))\r
+ /*while (packets && ((packets_total % packets) != 0))\r
{\r
--packets;\r
- }\r
+ }*/\r
\r
frame_bytes = packets * HDA_PACKET_SIZE;\r
nFrames = frame_bytes / nBlockAlign;\r