Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-01

Mac/PPC: AUGraphInitialize

2 messages · 1 person · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

EarMaster - Bent Olsen

Hi all, and a Happy New Year! :-)

We have struggled with a problem on few Mac's with PowerPC's the last couple of weeks, because we were unable to reproduce the problem on any available Mac's with PowerPC. The program simply just bounced in the dock and exited with no errors, crash reports, messages, no nothing.

After sending out test versions with debugging information in log files, we were able to locate the exact point. The program simply stops running on a call to AudioToolbox API named AUGraphInitialize.

The initial calls all returned "no error" status, and AUGraphInitialize works on most PPC (only 3 reports having this problem) and works on all i386, with nice and sweet sound.

We have build the code so it checks for status after each API call, and the initialization should stop if status is anything but OK.

Has anybody else experienced similar problems with AudioToolbox on PowerPC's? Like different framework versions, etc.?

Btw., except from this problem, we successfully released the Mac PPC/i386 version of the ear training software, EarMaster Pro/School 5 - ported from Delphi/Win32 and compiled with Lazarus 0.9.27 with FPC 2.2.2, revision 17246 on both PPC and i386 :-)

Best regards,
Normann

Reply by email

EarMaster - Bent Olsen

Hi,

I might have found the cause - I moved the call to AUGraphInitialize so it gets called before any calls to connect nodes, getting node info, and setting volume. Why this gets AUGraphInitialize to hang on few PowerPC's, and works on most PowerPC's and all i386's, I dunno.

Best regards,
Normann

Show quoted text 34 lines
-----Original Message----- From: EarMaster - Bent Olsen [mailto:] Sent: 6. januar 2009 19:19 To: 'General mailing list' Subject: Mac/PPC: AUGraphInitialize Hi all, and a Happy New Year! :-) We have struggled with a problem on few Mac's with PowerPC's the last couple of weeks, because we were unable to reproduce the problem on any available Mac's with PowerPC. The program simply just bounced in the dock and exited with no errors, crash reports, messages, no nothing. After sending out test versions with debugging information in log files, we were able to locate the exact point. The program simply stops running on a call to AudioToolbox API named AUGraphInitialize. The initial calls all returned "no error" status, and AUGraphInitialize works on most PPC (only 3 reports having this problem) and works on all i386, with nice and sweet sound. We have build the code so it checks for status after each API call, and the initialization should stop if status is anything but OK. Has anybody else experienced similar problems with AudioToolbox on PowerPC's? Like different framework versions, etc.? Btw., except from this problem, we successfully released the Mac PPC/i386 version of the ear training software, EarMaster Pro/School 5 - ported from Delphi/Win32 and compiled with Lazarus 0.9.27 with FPC 2.2.2, revision 17246 on both PPC and i386 :-) Best regards, Normann

Reply by email