diff options
author | XANTRONIX Development | 2022-03-10 15:48:07 -0500 |
---|---|---|
committer | XANTRONIX Development | 2022-03-10 15:48:07 -0500 |
commit | 2f5b2d36a07e53cf451538c814182ef7722dc776 (patch) | |
tree | d2a2a91971ae2e25d1e5a8e7ab1c89beecd6f0de /src | |
parent | c66d69c2c3646cad9ef2746ddbd7acb68a5f73da (diff) | |
download | xas-2f5b2d36a07e53cf451538c814182ef7722dc776.tar.gz xas-2f5b2d36a07e53cf451538c814182ef7722dc776.tar.bz2 xas-2f5b2d36a07e53cf451538c814182ef7722dc776.zip |
Explicitly specify speech part to get duration for
Diffstat (limited to 'src')
-rw-r--r-- | src/drone.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drone.c b/src/drone.c index 8b47b10..2a130fd 100644 --- a/src/drone.c +++ b/src/drone.c @@ -268,6 +268,7 @@ error_xas_seq_add: } static void max_speech_duration(xas_drone_chamber *chamber, + size_t speech_part, struct timeval *max) { size_t i; @@ -275,13 +276,12 @@ static void max_speech_duration(xas_drone_chamber *chamber, max->tv_usec = 0; for (i=0; i<chamber->drone_count; i++) { - xas_drone *drone = chamber->drones[i]; - xas_bank_player *player = (xas_bank_player *)drone->obj->ctx; + xas_drone *drone = chamber->drones[i]; struct timeval duration; xas_bank_entry_duration(drone->bank, - player->entry, + speech_part, &duration); if (timercmp(&duration, max, >)) { @@ -301,7 +301,7 @@ int xas_drone_chamber_seq_chorus(xas_drone_chamber *chamber, size_t i; - max_speech_duration(chamber, &duration); + max_speech_duration(chamber, speech_part, &duration); for (i=0; i<chamber->drone_count; i++) { xas_drone *drone = chamber->drones[i]; |