mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-05 16:20:14 +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;
|
||||
|
||||
@@ -51,7 +51,7 @@ class DriverHpi : public Driver
|
||||
bool timescaleSupported(int card);
|
||||
bool loadRecord(int card,int port,int coding,int chans,int samprate,
|
||||
int bitrate,QString wavename);
|
||||
bool unloadRecord(int card,int port,unsigned *len);
|
||||
bool unloadRecord(int card,int port,unsigned *len_frames);
|
||||
bool record(int card,int port,int length,int thres);
|
||||
bool stopRecord(int card,int port);
|
||||
bool setClockSource(int card,int src);
|
||||
|
||||
Reference in New Issue
Block a user