有人在iOS上使用MoMu STK成功實現了一個樂器嗎?我有點爲Instrument的流初始化。 我使用教程代碼,看起來像缺點什麼MoMu STK音頻合成
RtAudio dac; // Figure out how many bytes in an StkFloat and setup the RtAudio stream. RtAudio::StreamParameters parameters; parameters.deviceId = dac.getDefaultOutputDevice(); parameters.nChannels = 1; RtAudioFormat format = (sizeof(StkFloat) == 8) ? RTAUDIO_FLOAT64 : RTAUDIO_FLOAT32; unsigned int bufferFrames = RT_BUFFER_SIZE; dac.openStream(& parameters, NULL, format, (unsigned int)Stk::sampleRate(), &bufferFrames, &tick, (void *)&data);
錯誤描述說,對輸出設備的輸出參數是無效的,但是當我跳到指定設備ID,然後在它不工作爲好。 任何想法都會很棒。
這個鏈接似乎是出過期 – user3717478
謝謝你讓我知道!鏈接已更新。 – Eric