2023-12-18 Fred Gleason <fredg@paravelsystems.com>

* Fixed regressions in 'RDCae' and the HPI driver in caed(8)
	that caused the length of audio captures to be reported incorrectly.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-12-18 12:23:24 -05:00
parent f06f3d1453
commit f73c7e5d4c
6 changed files with 13 additions and 6 deletions

View File

@@ -282,7 +282,7 @@ bool DriverHpi::loadRecord(int card,int port,int coding,int chans,int samprate,
}
bool DriverHpi::unloadRecord(int card,int port,unsigned *len)
bool DriverHpi::unloadRecord(int card,int port,unsigned *len_frames)
{
#ifdef HPI
if(d_record_streams[card][port]==NULL) {
@@ -292,7 +292,7 @@ bool DriverHpi::unloadRecord(int card,int port,unsigned *len)
d_record_streams[card][port]->pause();
}
d_record_streams[card][port]->disconnect();
*len=d_record_streams[card][port]->samplesRecorded();
*len_frames=d_record_streams[card][port]->samplesRecorded();
d_record_streams[card][port]->closeWave();
delete d_record_streams[card][port];
d_record_streams[card][port]=NULL;