Closed Burgestrand closed 12 years ago
If format changes while waiting for queue.pop the driver will get audio of another format than it is expecting.
queue.pop
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.
AudioQueue#pop
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
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