Opened 8 years ago

Closed 7 years ago

#29259 closed defect (fixed)

portaudio: assertion failed when opening audio device full-duplex

Reported by: mressl@… Owned by: humem (humem)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Schmidt)
Port: portaudio

Description (last modified by ryandesign (Ryan Schmidt))

The following initialization error occurs when using portaudio under Mac OS X 10.6.7 on a MBP, and opening the default audio device in full-duplex.

Assertion failed: (sizeof( UInt32 ) == sizeof( long )), function ringBufferIOProc, file src/hostapi/coreaudio/pa_mac_core.c, line 1713.

This seems to be a problem from the 32 to 64 bit transition. It seems that only a patch in pa_mac_core.c in line 1713 is necessary.

I can help with that. Please contact me at mressl@….

Change History (11)

comment:1 Changed 8 years ago by ryandesign (Ryan Schmidt)

Description: modified (diff)
Keywords: portaudio removed
Port: portaudio added

What steps are necessary to reproduce the problem?

If you can provide a patch to fix it, please attach it to this ticket.

comment:2 Changed 8 years ago by ryandesign (Ryan Schmidt)

Summary: MacPorts+portaudio+Full-duplexportaudio: assertion failed when opening audio device full-duplex

comment:3 Changed 8 years ago by jmroot (Joshua Root)

This could easily be fixed upstream already; the version currently installed by the port is 3 years old.

comment:4 Changed 8 years ago by mressl@…

I just noticed the latest PortAudio is 20110326. Download link is:

http://www.portaudio.com/archives/pa_stable_v19_20110326.tgz

I will try to compile the latest stable release, and see if the error is gone. Depending on this, I will suggest updating the portaudio port to this latest release.

Thanks. Marc.-

comment:5 Changed 8 years ago by mressl@…

Good news.

I can confirm the problems are solved when updating to the latest portaudio build. The download link is:

http://www.portaudio.com/archives/pa_stable_v19_20110326.tgz

You can use ./configure --enable-mac-universal, to enable a universal build.

I hope this makes it through in MacPorts soon, it has been so useful to me!

comment:6 Changed 8 years ago by ryandesign (Ryan Schmidt)

Configure arguments like --enable-mac-universal are usually unnecessary in MacPorts and most probably do not do the right thing in MacPorts (i.e. probably introduce their own ideas about what architectures to use instead of using our universal_archs).

If somebody wants to update the portfile and supply a patch here, that would be great.

comment:7 Changed 8 years ago by mressl@…

I'm sorry for my ignorance, but what would be needed is updating these file, right?

I will try to work on this, and upload here. Best wishes,

Marc.-

comment:8 in reply to:  4 Changed 8 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… added

Replying to mressl@…:

I just noticed the latest PortAudio is 20110326.

An update to this version has just been submitted in #29429.

comment:9 Changed 8 years ago by ryandesign (Ryan Schmidt)

I've committed that update; please see if it helps this problem.

comment:10 Changed 7 years ago by ryandesign (Ryan Schmidt)

Owner: changed from macports-tickets@… to hum@…

comment:11 Changed 7 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed

Closing on the basis of comment:5, in the absence of any information to the contrary.

Note: See TracTickets for help on using tickets.