Ignore:
Timestamp:
2012-08-19T14:35:32Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
fa91c0f
Parents:
ad42844
Message:

Rename record → capture.

File:
1 edited

Legend:

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

    rad42844 rd86c9736  
    153153                const unsigned frames = dev->buffer.size /
    154154                    (BUFFER_PARTS * pcm_format_frame_size(&dev->sink.format));
    155                 ret = audio_pcm_start_record(dev->sess, frames,
     155                ret = audio_pcm_start_capture(dev->sess, frames,
    156156                    dev->sink.format.channels, dev->sink.format.sampling_rate,
    157157                    dev->sink.format.sample_format);
     
    163163                }
    164164        } else { /* Disconnected */
    165                 int ret = audio_pcm_stop_record(dev->sess);
     165                int ret = audio_pcm_stop_capture(dev->sess);
    166166                if (ret != EOK) {
    167167                        log_error("Failed to start recording: %s",
     
    208208                        break;
    209209                }
    210                 case PCM_EVENT_PLAYBACK_TERMINATED: {
     210                case PCM_EVENT_PLAYBACK_TERMINATED:
    211211                        log_verbose("Playback terminated!");
    212212                        return;
    213                 }
    214                 case PCM_EVENT_FRAMES_RECORDED: {
     213                case PCM_EVENT_FRAMES_CAPTURED:
    215214                        //TODO implement
    216215                        break;
    217                 }
    218                 case PCM_EVENT_RECORDING_TERMINATED:
     216                case PCM_EVENT_CAPTURE_TERMINATED:
    219217                        log_verbose("Recording terminated!");
    220218                        return;
Note: See TracChangeset for help on using the changeset viewer.