VirtualBox

Changeset 35112 in vbox for trunk/src/VBox/Devices/Audio


Ignore:
Timestamp:
Dec 15, 2010 8:50:48 AM (14 years ago)
Author:
vboxsync
Message:

Device/Audio/Sound_template: incorporated upstream fix to properly calculate DAC(playback) buffer size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/audio_template.h

    r35050 r35112  
    111111    int samples;
    112112
    113 #ifdef DAC
    114     samples = sw->hw->samples;
    115 #else
    116113    samples = ((int64_t) sw->hw->samples << 32) / sw->ratio;
    117 #endif
    118114
    119115    sw->buf = audio_calloc (AUDIO_FUNC, samples, sizeof (st_sample_t));
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette