Ignore:
Timestamp:
2013-03-17T16:23:57Z (11 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
bd5860f
Parents:
504f1ea3
Message:

libhound: Implement hound client side API sing client side protocol headers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/hound/include/hound/client.h

    r504f1ea3 r9e1800c  
    3939#include <async.h>
    4040#include <stdbool.h>
    41 #include <pcm/sample_format.h>
     41#include <pcm/format.h>
    4242
    4343#define DEFAULT_SINK "default"
     
    4848
    4949hound_context_t * hound_context_create_playback(const char *name,
    50     unsigned channels, unsigned rate, pcm_sample_format_t format, size_t bsize);
     50    pcm_format_t format, size_t bsize);
    5151hound_context_t * hound_context_create_capture(const char *name,
    52     unsigned channels, unsigned rate, pcm_sample_format_t format, size_t bsize);
     52    pcm_format_t format, size_t bsize);
    5353void hound_context_destroy(hound_context_t *hound);
    5454
     
    6464int hound_context_disconnect_target(hound_context_t *hound, const char* target);
    6565
     66hound_stream_t *hound_stream_create(hound_context_t *hound, unsigned flags,
     67    pcm_format_t format, size_t bsize);
     68void hound_stream_destroy(hound_stream_t *stream);
     69
     70int hound_stream_write(hound_stream_t *stream, const void *data, size_t size);
     71int hound_stream_read(hound_stream_t *stream, void *data, size_t size);
     72
    6673int hound_write_main_stream(hound_context_t *hound,
    6774    const void *data, size_t size);
     
    6976int hound_write_replace_main_stream(hound_context_t *hound,
    7077    const void *data, size_t size);
    71 int hound_write_immediate_stream(hound_context_t *hound,
    72     const void *data, size_t size);
    73 
    74 hound_stream_t *hound_stream_create(hound_context_t *hound, unsigned flags,
    75     unsigned channels, unsigned rate, pcm_sample_format_t format);
    76 void hound_stream_destroy(hound_stream_t *stream);
    77 
    78 int hound_stream_write(hound_stream_t *stream, const void *data, size_t size);
    79 int hound_stream_read(hound_stream_t *stream, void *data, size_t size);
     78int hound_write_immediate(hound_context_t *hound,
     79    pcm_format_t format, const void *data, size_t size);
    8080
    8181
Note: See TracChangeset for help on using the changeset viewer.