FreeCalypso > hg > tcs211-l1-reconst
changeset 257:da21daa2bdfb
l1audio_async.c: l1a_mmi_vm_amr_playing_process() reconstructed
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 13 Mar 2017 02:56:18 +0000 |
parents | c024926a995e |
children | f92f76170ab9 |
files | chipsetsw/layer1/audio_cfile/l1audio_async.c |
diffstat | 1 files changed, 14 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/chipsetsw/layer1/audio_cfile/l1audio_async.c Mon Mar 13 02:01:49 2017 +0000 +++ b/chipsetsw/layer1/audio_cfile/l1audio_async.c Mon Mar 13 02:56:18 2017 +0000 @@ -1807,9 +1807,9 @@ WAIT_START_REQ = 1, WAIT_DYN_DWNLD = 2, WAIT_START_CON = 3, - WAIT_STOP = 4, - VM_AMR_PLAY = 5 + WAIT_STOP = 4 #if 0 /* FreeCalypso TCS211 reconstruction */ + VM_AMR_PLAY = 5, VM_AMR_PAUSE = 6, VM_AMR_PAUSE_CON = 7, WAIT_RESUME_CON = 8 @@ -1906,7 +1906,7 @@ // Send the start confirmation message l1a_audio_send_confirmation(MMI_VM_AMR_PLAY_START_CON); - *state = VM_AMR_PLAY ; + *state = WAIT_STOP; } // End process @@ -1916,6 +1916,15 @@ case WAIT_STOP: { + if (SignalCode == MMI_VM_AMR_PLAY_STOP_REQ) + { + // Stop the L1S voice memo playing task + l1a_l1s_com.voicememo_amr_task.play.command.stop = TRUE; + + // End process + return; + } + else if (SignalCode == L1_VM_AMR_PLAY_STOP_CON) { // Send the stop confirmation message @@ -1930,11 +1939,12 @@ } } break; + + #if 0 /* FreeCalypso TCS211 reconstruction */ case VM_AMR_PLAY: { switch (SignalCode) { - #if 0 /* FreeCalypso TCS211 reconstruction */ case MMI_VM_AMR_PAUSE_REQ: { // Stop the L1S voice memo playing task @@ -1951,7 +1961,6 @@ *state=WAIT_STOP; } break; - #endif case L1_VM_AMR_PLAY_STOP_CON: { @@ -1963,7 +1972,6 @@ return; } - #if 0 /* FreeCalypso TCS211 reconstruction */ case VM_AMR_PAUSE_CON: { if(SignalCode==L1_VM_AMR_PAUSE_CON)