Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WASAPI shutdown crash #8

Merged
merged 4 commits into from
Apr 18, 2014
Merged

Fix WASAPI shutdown crash #8

merged 4 commits into from
Apr 18, 2014

Conversation

MarcusTomlinson
Copy link
Member

No description provided.

garyscavone added a commit that referenced this pull request Apr 18, 2014
@garyscavone garyscavone merged commit 1bf01e7 into thestk:master Apr 18, 2014
@garyscavone
Copy link
Contributor

Hi Marcus,

I tested the WASAPI code and the updated sample rate support seems fine. However, while duplex operation is working, audio input only does not seem to work. I’m not sure I tested this before. There is a “record.cpp” program in the tests/ directory that you can use to try it. I compiled using MinGW. Let me know if you can try to debug it.

Note a made an addition or two to the code on github so you should probably grab the latest version from there.

—gary

On Apr 18, 2014, at 10:08 AM, MarcusTomlinson notifications@github.com wrote:

You can merge this Pull Request by running

git pull https://github.com/MarcusTomlinson/rtaudio master
Or view, comment on, or merge it at:

#8

Commit Summary

• Added an author header to the WASAPI section
• Fixed shutdown crash on certain sample rates
• Support all sample rates for WASAPI
File Changes

• M RtAudio.cpp (38)
Patch Links:

https://github.com/thestk/rtaudio/pull/8.patch
https://github.com/thestk/rtaudio/pull/8.diff

Reply to this email directly or view it on GitHub.

@MarcusTomlinson
Copy link
Member Author

Hmm, strange. I thought I has tested this too. Yeah sure, I'll have a look soon.

On 23 Apr 2014, at 22:09, garyscavone notifications@github.com wrote:

Hi Marcus,

I tested the WASAPI code and the updated sample rate support seems fine. However, while duplex operation is working, audio input only does not seem to work. I’m not sure I tested this before. There is a “record.cpp” program in the tests/ directory that you can use to try it. I compiled using MinGW. Let me know if you can try to debug it.

Note a made an addition or two to the code on github so you should probably grab the latest version from there.

—gary

On Apr 18, 2014, at 10:08 AM, MarcusTomlinson notifications@github.com wrote:

You can merge this Pull Request by running

git pull https://github.com/MarcusTomlinson/rtaudio master
Or view, comment on, or merge it at:

#8

Commit Summary

• Added an author header to the WASAPI section
• Fixed shutdown crash on certain sample rates
• Support all sample rates for WASAPI
File Changes

• M RtAudio.cpp (38)
Patch Links:

https://github.com/thestk/rtaudio/pull/8.patch
https://github.com/thestk/rtaudio/pull/8.diff

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

@garyscavone
Copy link
Contributor

Hi Marcus,

I did a little hunting for the problem and I localized it to line 5082:

if ( callbackPushed ) {
  callbackPulled = false;
}

The “callbackPushed” flag can never be true for an input-only stream. Thus, the user callback never gets called after the first call. That said, I still don’t fully understand all parts of the code and thus I’m not sure what the fix is. I tried removing the condition and always setting callbackPulled = false, but the result for audio input was not clean.

Regards,

—gary

On Apr 24, 2014, at 10:10 AM, MarcusTomlinson notifications@github.com wrote:

Hmm, strange. I thought I has tested this too. Yeah sure, I'll have a look soon.

On 23 Apr 2014, at 22:09, garyscavone notifications@github.com wrote:

Hi Marcus,

I tested the WASAPI code and the updated sample rate support seems fine. However, while duplex operation is working, audio input only does not seem to work. I’m not sure I tested this before. There is a “record.cpp” program in the tests/ directory that you can use to try it. I compiled using MinGW. Let me know if you can try to debug it.

Note a made an addition or two to the code on github so you should probably grab the latest version from there.

—gary

On Apr 18, 2014, at 10:08 AM, MarcusTomlinson notifications@github.com wrote:

You can merge this Pull Request by running

git pull https://github.com/MarcusTomlinson/rtaudio master
Or view, comment on, or merge it at:

#8

Commit Summary

• Added an author header to the WASAPI section
• Fixed shutdown crash on certain sample rates
• Support all sample rates for WASAPI
File Changes

• M RtAudio.cpp (38)
Patch Links:

https://github.com/thestk/rtaudio/pull/8.patch
https://github.com/thestk/rtaudio/pull/8.diff

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants