Burgestrand / Hallon

Hallon is currently **UNMAINTAINED**.
http://rdoc.info/github/Burgestrand/Hallon/master/frames
134 stars 12 forks source link

Race condition in Player, stream block #124

Closed Burgestrand closed 12 years ago

Burgestrand commented 12 years ago

If format changes while waiting for queue.pop the driver will get audio of another format than it is expecting.

A solution is to pass in the format expected into AudioQueue#pop, and have it return nil if audio of the given format cannot be delivered.

Check must happen after the queue is known to contain data, but before frames are extracted out of the queue.

Related to Burgestrand/hallon-openal#2