You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/apps/examples/cacheannounce
Donat Zenichev 13ff63532c
MT#57391 sems (CE): eliminate the `auto_ptr` usage (deprecated in C++11)
3 years ago
..
etc mem cached audio files implementation - improves performance 4-5% over announcement from file (G711) 19 years ago
CacheAnnounce.cpp MT#55831 Make the code build again 3 years ago
CacheAnnounce.h MT#57391 sems (CE): eliminate the `auto_ptr` usage (deprecated in C++11) 3 years ago
Makefile mem cached audio files implementation - improves performance 4-5% over announcement from file (G711) 19 years ago
Readme.cacheannounce mem cached audio files implementation - improves performance 4-5% over announcement from file (G711) 19 years ago

Readme.cacheannounce

cacheannounce always plays the default announce to the caller.

This is a example of how to use the mem cached versions of AmAudioFile: 
AmFileCache/AmCachedAudioFile.

The AmFileCache class can load a file once (AmFileCache::load), 
and the AmCachedAudioFile then uses the file from memory. AmFileCache 
objects can e.g. be created at startup and passed to the session object
which creates AmCachedAudioFile objects to play back the files. 

Measurements with 100 calls playing back default_en.wav encoded as PCMU
have shown a 4-5% performance increase (192,607,161 Ir's vs. 201,569,407 Ir's) 
over the normal not cached announcement application.