Prevent undefined delete when proAudioRt constructor fails
This commit is contained in:
parent
6462ac9107
commit
08178b5d98
@ -38,7 +38,8 @@ DeviceAudio* DeviceAudioRt::create(unsigned int nTracks, unsigned int frequency,
|
|||||||
return s_instance;
|
return s_instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
DeviceAudioRt::DeviceAudioRt(unsigned int nTracks, unsigned int frequency, unsigned int chunkSize) : DeviceAudio() {
|
DeviceAudioRt::DeviceAudioRt(unsigned int nTracks, unsigned int frequency, unsigned int chunkSize)
|
||||||
|
: DeviceAudio(), ma_sound(0) {
|
||||||
if ( m_dac.getDeviceCount() < 1 ) {
|
if ( m_dac.getDeviceCount() < 1 ) {
|
||||||
fprintf(stderr,"DeviceAudioRt ERROR: No audio devices found!\n");
|
fprintf(stderr,"DeviceAudioRt ERROR: No audio devices found!\n");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user