Rev 417 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 417 | Rev 419 | ||
---|---|---|---|
Line 374... | Line 374... | ||
374 | test [format], PCM_STATIC |
374 | test [format], PCM_STATIC |
375 | jnz .static |
375 | jnz .static |
Line 376... | Line 376... | ||
376 | 376 | ||
Line 377... | Line 377... | ||
377 | ; ring and waveout |
377 | ; ring and waveout |
378 | 378 | ||
379 | mov eax, 0x10000 |
379 | mov ebx, 0x10000 |
Line 380... | Line 380... | ||
380 | test [format], PCM_RING |
380 | test [format], PCM_RING |
381 | jz .waveout |
381 | jz .waveout |
382 | 382 | ||
383 | mov eax, [eax+STREAM.r_size] |
383 | mov ebx, [eax+STREAM.r_size] |
384 | add eax, 4095 |
384 | add ebx, 4095 |
385 | and eax, -4096 |
385 | and ebx, -4096 |
386 | add eax, eax |
386 | add ebx, ebx |
387 | .waveout: |
387 | .waveout: |
388 | mov [ring_size], eax |
388 | mov [ring_size], ebx |
Line 389... | Line 389... | ||
389 | mov ebx, eax |
389 | mov eax, ebx |
390 | shr ebx, 12 |
390 | shr ebx, 12 |