View previous topic :: View next topic |
Author |
Message |
Andrej08
Joined: 31 Aug 2010 Posts: 51
|
Posted: Sun Oct 17, 2010 6:15 pm Post subject: Portaudio header file has bugs |
|
|
There are some bugs in the Portaudio D header file. I did a re-translation with HTOD and changed some typedef to an alias, and the problem was resolved.
The issue was that the callback function was not called frequently enough, and this caused audio dropouts. For example, on a sample rate of 44100hz with a buffer size of 64 frames, the callback was called only ~30 times, when it was supossed to be called over ~680 times per second.
I don't have write access to the repository, so I'm posting the updated header file here. This is from the latest Portaudio release (still the one from 2007):
http://pastebin.com/B1eUwxBe
Also, here is the updated patest_sine_hello.d file, this one is for use with D2, so maybe it should be saved as a new file if the D1 example is to be kept:
http://pastebin.com/Q6rgSsHv
Edit: sorry for the silly code paste, I've uploaded to pastebin now. |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Sun Oct 17, 2010 6:26 pm Post subject: Re: Portaudio header file has bugs |
|
|
Andrej08 wrote: | I don't have write access to the repository, so I'm posting the updated header file here. | Did you try to send the fix to the repository?
Everyone with a dsource username should have access a dsource username (e.g., Andrej08) and their forum password. |
|
Back to top |
|
|
Andrej08
Joined: 31 Aug 2010 Posts: 51
|
Posted: Sun Oct 17, 2010 6:54 pm Post subject: |
|
|
Sorry, I wouldn't know the first thing about using svn.. |
|
Back to top |
|
|
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Sun Oct 17, 2010 10:13 pm Post subject: |
|
|
Andrej08 wrote: | Sorry, I wouldn't know the first thing about using svn.. | Here's some info on SVN: http://www.dsource.org/site/svnclient
I guess I might be able to update the SVN for you, but I'm not sure that I have a computer with the SVN clients set up on it either. (I don't think it's that hard, but I'm out of practice.) |
|
Back to top |
|
|
Andrej08
Joined: 31 Aug 2010 Posts: 51
|
Posted: Mon Oct 18, 2010 12:26 pm Post subject: |
|
|
jcc7 wrote: | Andrej08 wrote: | Sorry, I wouldn't know the first thing about using svn.. | Here's some info on SVN: http://www.dsource.org/site/svnclient
I guess I might be able to update the SVN for you, but I'm not sure that I have a computer with the SVN clients set up on it either. (I don't think it's that hard, but I'm out of practice.) |
Thanks, I'll look into it. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|