Mastering Android NDK by Sergey Kosarevsky & Viktor Latypov
Author:Sergey Kosarevsky & Viktor Latypov [Kosarevsky, Sergey]
Language: eng
Format: azw3, pdf
Publisher: Packt Publishing
Published: 2015-09-29T16:00:00+00:00
The stream parameters, like the number of channels, sampling rate and bits per sample, are retrieved here:
vorbis_info* VorbisInfo = OGG_ov_info ( &FVorbisFile, -1 ); FChannels = VorbisInfo->channels; FSamplesPerSec = VorbisInfo->rate; FBitsPerSample = 16; }
The destructor is trivial:
virtual ~clOggProvider() { OGG_ov_clear( &FVorbisFile ); }
The ReadFromFile() and Seek() methods are pretty much similar in spirit to what we have done when dealing with MiniMP3:
virtual int ReadFromFile( int Size, int BytesRead ) override { return ( int )OGG_ov_read( &FVorbisFile, &FBuffer[0] + BytesRead, Size - BytesRead, 0, FBitsPerSample / 8, 1, &FOGGCurrentSection ); } virtual void Seek( float Time ) override { FEof = false; OGG_ov_time_seek( &FVorbisFile, Time ); } private:
Download
Mastering Android NDK by Sergey Kosarevsky & Viktor Latypov.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Blockchain Development for Finance Projects by Ishan Roy(1310)
Mastering Blockchain by Daniel Cawrey & Lorne Lantz(804)
Crypto Dictionary by Jean-Philippe Aumasson(698)
Crypto Asset Investing in the Age of Autonomy by Jake Ryan(527)
Blockchain Chicken Farm by Xiaowei Wang(474)
Bitcoin & Cryptocurrency Technologies: Bitcoin Mining, Blockchain Basics And Cryptocurrency Trading & Investing For Beginners | 7 Books In 1 by Weiser Boris & Weiser Boris(452)
Blockchain and Cryptocurrency: 2 Books in 1: Blockchain Basics & Cryptocurrency for Beginners. The Complete Guide for Beginners to Understand Blockchain Technology and Start Cryptocurrency Investing by Trend Richard(433)
Cyber Security for Cyber Physical Systems by Saqib Ali Taiseera Al Balushi Zia Nadir & Omar Khadeer Hussain(431)
Algorithms, Blockchain & Cryptocurrency by Gavin Brown(429)
The Promise of Bitcoin by Bobby C. Lee(405)
Mr Bitcoin by Dagada Mpho;(393)
Quantum Cryptography and the Future of Cyber Security by Chaubey Nirbhay(387)
Cryptocurrency 101: An Introduction To Bitcoin, Cryptocurrency, And The Blockchain by Finch Andy(373)
Blockchain Startups: Bitcoin and Ethereum as the Frontier of Finance by King Stefan(369)
The Bitcoin Book: A Beginner's Guide to the Future of Finance by Underhill Matthew(366)
Blockchain Success Stories by Sir John Hargrave(364)
The Physics of Computing by Luca Gammaitoni(344)
What The Raspberry Pi Is: Everything You Need To Know: Raspberry Pi 3 Advantages by Mosconi Rob(333)
The Cryptocurrency Revolution by Rhian Lewis(328)
