note: updateActiveStreams relies on caller to lock mutex
| 1126 | |
| 1127 | // note: updateActiveStreams relies on caller to lock mutex |
| 1128 | void updateActiveStreams(modAudioOut out) |
| 1129 | { |
| 1130 | int i; |
| 1131 | |
| 1132 | out->activeStreamCount = 0; |
| 1133 | out->applyVolume = false; |
| 1134 | for (i = 0; i < out->streamCount; i++) { |
| 1135 | modAudioOutStream stream = &out->stream[i]; |
| 1136 | |
| 1137 | if (0 == stream->elementCount) |
| 1138 | continue; |
| 1139 | |
| 1140 | out->activeStream[out->activeStreamCount++] = stream; |
| 1141 | if (stream->volume != 256) |
| 1142 | out->applyVolume = true; |
| 1143 | } |
| 1144 | } |
| 1145 | |
| 1146 | #if defined(__APPLE__) |
| 1147 | void audioQueueCallback(void *inUserData, AudioQueueRef inAQ, AudioQueueBufferRef buffer) |
no outgoing calls
no test coverage detected