Facade class for audio playing. More...
|AudioDecoder (float threshold, size_t length, int type=PLAYER_AAC)|
|Constructor of AudioDecoder. More...|
|void||RemoveSink (AbstractSink *sink)|
|Removes sink. More...|
|AbstractSink *||AddSink (AbstractSink *sink)|
|Adds new sink. More...|
|size_t||Write (uint8_t *buffer, size_t length)|
|Writes into internal ring buffer, could override oldest data when full. More...|
|Should be called when current portion of data is last one. More...|
|void||RegisterTagsMapCallback (TagsMapCallback cb_func, void *cb_data)|
|Registers tags map callback. More...|
|void||RegisterReadCallback (ReadCallback cb_func, void *cb_data)|
|Registers read callback. More...|
|Starts audio processing. More...|
|int||PlayerType () const|
|Gets Player current type. More...|
|Flushes Player state. More...|
|Pointer to RingSrc feeder object. More...|
|Pointer to NullSink consumer object. More...|
|Pointer to Player object. More...|
Facade class for audio playing.
- 7 July 2015 - version 1.0 beta
- 7 July 2016 - version 2.0 beta
- 1 November 2016 - version 2.0
- Copyright (c) 2015 Jaroslaw Bulat, Kacper Patro
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Constructor & Destructor Documentation
Constructor of AudioDecoder.
[in] threshold Relative to 0.5, indicates values for which audio time-stretching will take place [in] length Length of internal blocking ring buffer [in] type Player type: mpeg or aac
Member Function Documentation
Registers read callback.
cb_func will be called with cb_data passed when reading from internal buffer
[in] cb_func Function to be called. Must match ReadCallback signature [in,out] cb_data Data which will be passed to cb_func when called
Registers tags map callback.
cb_func will be called with cb_data passed when tags received
[in] cb_func Function to be called. Must match TagsMapCallback signature [in,out] cb_data Data which will be passed to cb_func when called
|void AudioDecoder::RemoveSink||(||AbstractSink *||sink||)|
|size_t AudioDecoder::Write||(||uint8_t *||buffer,|
Writes into internal ring buffer, could override oldest data when full.
[in] buffer Pointer to source buffer [in] length Length of source buffer to read from
- Number of elements written into internal buffer
Member Data Documentation
The documentation for this class was generated from the following files: