cwIoAudioPanel.cpp : Fixed bug where ioH was saved back to object too late in audio_panel::create().
This commit is contained in:
parent
20437e3f5e
commit
c90aa58bc5
@ -269,6 +269,7 @@ cw::rc_t cw::io::audio_panel::create( handle_t& hRef, io::handle_t ioH, unsigne
|
|||||||
|
|
||||||
audio_panel_t* p = mem::allocZ<audio_panel_t>();
|
audio_panel_t* p = mem::allocZ<audio_panel_t>();
|
||||||
|
|
||||||
|
p->ioH = ioH;
|
||||||
|
|
||||||
// create the audio panels for each audio device
|
// create the audio panels for each audio device
|
||||||
for(unsigned i=0; i<audioDeviceCount(ioH); ++i)
|
for(unsigned i=0; i<audioDeviceCount(ioH); ++i)
|
||||||
@ -285,7 +286,6 @@ cw::rc_t cw::io::audio_panel::create( handle_t& hRef, io::handle_t ioH, unsigne
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
p->ioH = ioH;
|
|
||||||
hRef.set(p);
|
hRef.set(p);
|
||||||
|
|
||||||
errLabel:
|
errLabel:
|
||||||
|
Loading…
Reference in New Issue
Block a user