Hi,
I just emailed you off-list, but on second thought, the code below
does not open a device, and outStream (or more specifically, *outStream)
is uninitialized. Passing an uninitialized pointer to Pm_HasHostError()
is pretty likely to cause a crash. Use Pm_OpenOutput first. -Roger
On 1/15/12 7:34 AM, dev don wrote:
///INITMIDIOUT
int pmErrInit = Pm_Initialize();
int devCount = Pm_CountDevices();
int devOutId = Pm_GetDefaultOutputDeviceID();
const PmDeviceInfo * devOutInfo = Pm_GetDeviceInfo(devOutId);
PortMidiStream** outStream = new PortMidiStream*;
int hasErr = Pm_HasHostError(outStream); // SEGFAULT
_______________________________________________
media_api mailing list
[email protected]
http://lists.create.ucsb.edu/mailman/listinfo/media_api