| 458 | } |
| 459 | |
| 460 | static PaSampleFormat AudacityToPortAudioSampleFormat(sampleFormat format) |
| 461 | { |
| 462 | switch(format) { |
| 463 | case int16Sample: |
| 464 | return paInt16; |
| 465 | case int24Sample: |
| 466 | return paInt24; |
| 467 | case floatSample: |
| 468 | default: |
| 469 | return paFloat32; |
| 470 | } |
| 471 | } |
| 472 | |
| 473 | bool AudioIO::StartPortAudioStream(const AudioIOStartStreamOptions &options, |
| 474 | unsigned int numPlaybackChannels, unsigned int numCaptureChannels) |
no outgoing calls
no test coverage detected