Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/source.h

    rde5d3f1 rac20c85  
    11/*
    2   Copyright (C) 2012 Paul Brossier <piem@aubio.org>
     2  Copyright (C) 2012-2013 Paul Brossier <piem@aubio.org>
    33
    44  This file is part of aubio.
     
    2424/** \file
    2525
    26   Media source object
     26  Media source to read blocks of consecutive audio samples from file
    2727
    2828  \example io/test-source.c
     
    3434#endif
    3535
    36 /** source object structure */
     36/** media source object */
    3737typedef struct _aubio_source_t aubio_source_t;
    3838
     
    4242
    4343  \param uri the file path or uri to read from
    44   \param samplerate the sample rate to read the file at
    45   \param hop_size the size of the blocks to read from
     44  \param samplerate sampling rate to view the fie at
     45  \param block_size the size of the blocks to read from
    4646
    4747  Creates a new source object. If `0` is passed as `samplerate`, the sample
    4848  rate of the original file is used.
    4949
    50   The samplerate of the current source can be obtained with
     50  The samplerate of newly created source can be obtained using
    5151  ::aubio_source_get_samplerate.
    5252
    5353*/
    54 aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t hop_size);
     54aubio_source_t * new_aubio_source(char_t * uri, uint_t samplerate, uint_t block_size);
    5555
    5656/**
    5757
    58   read monophonic vector of length hop_size from source object
     58  read monophonic vector of length block_size from source object
    5959
    6060  \param s source object, created with ::new_aubio_source
    61   \param read_data ::fvec_t of data to read to
    62   \param read number of frames actually read
     61  \param read_to ::fvec_t of data to read to
     62  \param read upon returns, equals to number of frames actually read
    6363
    6464  Upon returns, `read` contains the number of frames actually read from the
    65   source. `hop_size` if enough frames could be read, less otherwise.
     65  source. `block_size` if enough frames could be read, less otherwise.
    6666
    6767*/
    68 void aubio_source_do(aubio_source_t * s, fvec_t * read_data, uint_t * read);
     68void aubio_source_do(aubio_source_t * s, fvec_t * read_to, uint_t * read);
    6969
    7070/**
     
    8080/**
    8181
    82   destroy source object
     82  close source and cleanup memory
    8383
    8484  \param s source object, created with ::new_aubio_source
Note: See TracChangeset for help on using the changeset viewer.