Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 7f6d84b in mainline


Ignore:
Timestamp:
2013-03-20T23:18:56Z (7 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
master
Children:
493817b0
Parents:
842eecdd
Message:

hound: Measure time needed to mix audio data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/audio/hound/audio_device.c

    r842eecdd r7f6d84b  
    196196                switch(IPC_GET_IMETHOD(call)) {
    197197                case PCM_EVENT_FRAMES_PLAYED: {
     198                        struct timeval time1;
     199                        getuptime(&time1);
    198200                        //TODO add underrun protection.
    199201                        if (dev->buffer.position) {
     
    209211                        audio_sink_mix_inputs(&dev->sink, dev->buffer.position,
    210212                            dev->buffer.size / BUFFER_PARTS);
     213                        struct timeval time2;
     214                        getuptime(&time2);
     215                        log_verbose("Time to mix sources: %li\n",
     216                            tv_sub(&time2, &time1));
    211217                        break;
    212218                }
Note: See TracChangeset for help on using the changeset viewer.