Changeset 6609050 in mainline for uspace/app/modplay/modplay.c


Ignore:
Timestamp:
2014-09-26T21:32:53Z (10 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
18cc83c
Parents:
7e69e0e
Message:

Fix buffering issues.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/modplay/modplay.c

    r7e69e0e r6609050  
    102102        format.sample_format = PCM_SAMPLE_SINT16_BE;
    103103#endif
    104         buffer_size = format.sampling_rate;
     104        buffer_size = 64 * 1024;
    105105
    106106        buffer = malloc(buffer_size);
     
    137137                        break;
    138138
    139                 trackmod_modplay_get_samples(modplay, buffer, buffer_size);
     139                trackmod_modplay_get_samples(modplay, buffer, buffer_size / 4);
    140140
    141                 rc = hound_write_main_stream(hound, buffer, buffer_size);
     141                rc = hound_write_main_stream(hound, buffer, buffer_size / 4);
    142142                if (rc != EOK) {
    143143                        printf("Error writing audio stream.\n");
Note: See TracChangeset for help on using the changeset viewer.