Home
last modified time | relevance | path

Searched refs:targetProperties (Results 1 – 7 of 7) sorted by relevance

/external/oboe/samples/RhythmGame/src/main/cpp/audio/
DAAssetDataSource.cpp39 const AudioProperties targetProperties) { in newFromCompressedAsset() argument
57 int64_t bytesDecoded = FFMpegExtractor::decode(asset, decodedData, targetProperties); in newFromCompressedAsset()
63 int64_t bytesDecoded = NDKExtractor::decode(asset, decodedData, targetProperties); in newFromCompressedAsset()
85 targetProperties); in newFromCompressedAsset()
DNDKExtractor.cpp27 int32_t NDKExtractor::decode(AAsset *asset, uint8_t *targetData, AudioProperties targetProperties) { in decode() argument
51 if (sampleRate != targetProperties.sampleRate){ in decode()
55 targetProperties.sampleRate); in decode()
66 if (channelCount != targetProperties.channelCount){ in decode()
70 targetProperties.channelCount); in decode()
DFFMpegExtractor.cpp122 AudioProperties targetProperties) { in decode() argument
204 int32_t outChannelLayout = (1 << targetProperties.channelCount) - 1; in decode()
209 av_opt_set_int(swr, "out_channel_count", targetProperties.channelCount, 0); in decode()
213 av_opt_set_int(swr, "out_sample_rate", targetProperties.sampleRate, 0); in decode()
268 targetProperties.sampleRate, in decode()
276 targetProperties.channelCount, in decode()
287 int64_t bytesToWrite = frame_count * sizeof(float) * targetProperties.channelCount; in decode()
DNDKExtractor.h29 static int32_t decode(AAsset *asset, uint8_t *targetData, AudioProperties targetProperties);
DAAssetDataSource.h34 AudioProperties targetProperties);
DFFMpegExtractor.h33 static int64_t decode(AAsset *asset, uint8_t *targetData, AudioProperties targetProperties);
/external/oboe/samples/RhythmGame/src/main/cpp/
DGame.cpp210 AudioProperties targetProperties { in setupAudioSources() local
217 AAssetDataSource::newFromCompressedAsset(mAssetManager, kClapFilename, targetProperties) in setupAudioSources()
227 … AAssetDataSource::newFromCompressedAsset(mAssetManager, kBackingTrackFilename, targetProperties) in setupAudioSources()