mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-13 16:44:10 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user