Skip to content

Commit

Permalink
Fix audio_engine API for 4.3
Browse files Browse the repository at this point in the history
These methods are likely to be needed and accessible through other
means, so keep them around until the updated API is actually read

Change-Id: Icba0e95f3f293279f260df92e6bd6b1aea5ed7bc
  • Loading branch information
rmcc committed Jul 25, 2013
1 parent 611a645 commit 6b2ce1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cyanogen-dsp/cyanogen-dsp.cpp
Expand Up @@ -106,6 +106,7 @@ static const struct effect_interface_s generic_interface = {
NULL
};

/*
int32_t EffectQueryNumberEffects(uint32_t *num) {
*num = 4;
return 0;
Expand All @@ -131,6 +132,8 @@ int32_t EffectQueryEffect(uint32_t num, effect_descriptor_t *pDescriptor) {
return 0;
}
*/

int32_t EffectCreate(const effect_uuid_t *uuid, int32_t sessionId, int32_t ioId, effect_handle_t *pEffect) {
if (memcmp(uuid, &compression_descriptor.uuid, sizeof(effect_uuid_t)) == 0) {
struct effect_module_s *e = (struct effect_module_s *) calloc(1, sizeof(struct effect_module_s));
Expand Down Expand Up @@ -202,8 +205,6 @@ audio_effect_library_t AUDIO_EFFECT_LIBRARY_INFO_SYM = {
version : EFFECT_LIBRARY_API_VERSION,
name : "CyanogenMod's Effect Library",
implementor : "Antti S. Lankila",
query_num_effects : EffectQueryNumberEffects,
query_effect : EffectQueryEffect,
create_effect : EffectCreate,
release_effect : EffectRelease,
get_descriptor : EffectGetDescriptor,
Expand Down

0 comments on commit 6b2ce1b

Please sign in to comment.