Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: How to determine when playback of a raw file from the SD card is finished

  1. #1
    Junior Member
    Join Date
    Apr 2018
    Posts
    13

    How to determine when playback of a raw file from the SD card is finished

    I am working on a Simplex Amateur Radio Repeater. Operation is such that when a signal is detected, the recorder starts and a recording timer is started. When the signal is no longer detected or the recording time limit has elapsed, the radio is set to transmit and the recorded audio is played back and transmitted. I need a way to to detect, programmatically, when the playback has completed, so the transmitter can be turned off and the repeater reverted to listening for in incoming signal.

    Dennis, KG4RUL

  2. #2
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,635
    You could time how long the recording is and then use that to time the playback.

    Pete

  3. #3
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    14,140
    Code not shown to show play context?

    But is this the answer from HERE > see right pane:
    Code:
    isPlaying();
    
    Return true (non-zero) if playing, or false (zero) when not playing. See the note below about delayed start.

  4. #4
    Junior Member
    Join Date
    Apr 2018
    Posts
    13

    Doh!

    Quote Originally Posted by defragster View Post
    Code not shown to show play context?

    But is this the answer from HERE > see right pane:
    Code:
    isPlaying();
    
    Return true (non-zero) if playing, or false (zero) when not playing. See the note below about delayed start.
    WOW! Totally missed that one. Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •