Revision 575c153f audio/audio_template.h

b/audio/audio_template.h
108 108
{
109 109
    int samples;
110 110

  
111
#ifdef DAC
112
    samples = sw->hw->samples;
113
#else
114 111
    samples = ((int64_t) sw->hw->samples << 32) / sw->ratio;
115
#endif
116 112

  
117 113
    sw->buf = audio_calloc (AUDIO_FUNC, samples, sizeof (struct st_sample));
118 114
    if (!sw->buf) {

Also available in: Unified diff