openframeworks / openframeworks/openFrameworks

Sound examples not working on Win10 VS2017

Open
#5,953 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

Hi, I was just testing the sound examples and the ones that use an ofSoundStream instance are not working, at least in my computer (macbookpro mid2014 win10 via bootcamp).
The only example that works is the soundBuffer example.
There are two issues, first it says
[ error ] RtApiWasapi::probeDeviceOpen: 44100Hz sample rate not supported. This device only supports 48000Hz. which is the fisrt time I ever see this error. It might be related to the bundled RTAudio lib?
The cheap and easy fix is to use a samplerate of 48000 but 44100 is a very common samplerate so the problem will keep on showing up.
looking at the soundBufferExample I noticed that the ofSoundStreamSettings has the following line
settings.numBuffers = 4;
I tested adding it to the other examples and it makes these work.
Once again, I cant really tell why this is happening. Are there any changes in ofSoundStream that make this setting mandatory or it might be, once again an RTAudio related thing?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the sound examples that use ofSoundStream and compare their ofSoundStreamSettings with the working soundBuffer example, especially numBuffers. Reproduce the failure on Win10 VS2017 with a 44100Hz device and check the RtApiWasapi sample-rate message. Done means the affected sound examples work reliably with the reported device settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
audio-video-rtc
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.