Comments (4)
I found the bug and I have patched the Audio class to prefer ALSA over OSS and
made
ALSA work...
Apart from the change I've suggested above, it was necessary to change
suggestedLatency to make ALSA work properly. E.g. line 139:
inputParams.suggestedLatency = this.inputDeviceInfo.defaultLowInputLatency;
and Line 143:
outputParams.suggestedLatency = this.outputDeviceInfo.defaultLowOutputLatency;
I admit I don't know why this is necessary, I hardly know what latency means :)
But according to PortAudio documentation:
http://www.portaudio.com/docs/v19-doxydocs/structPaStreamParameters.html#a1e80ac
0551162fd091db8936ccbe9a0
Implementations (Audio drivers I assume) should, if suggested latency is not
possible, choose the closes possible latency... So maybe this a bug specific to
my
version of PortAudio which is 19+svn20071207-0ubuntu3.
Somebody else should probably try to confirm otherwise...
Anyway, with the patch both ALSA and OSS works just fine...
Original comment by [email protected]
on 20 Jan 2009 at 3:50
Attachments:
from portaudiosharp.
I'm sorry I didn't notice this case before.
I tought that I would have received a notification email from Google Code when
a new
case is opened but for some reason I didn't received it.
Thank you for the patch! I'm going to rewiew it as soon as i have some spare
time.
Original comment by [email protected]
on 1 Apr 2009 at 2:28
- Added labels: OpSys-Linux
from portaudiosharp.
I had chosen OSS over ALSA because that was the only apiHost that worked in my
Linux
install, this was probably due to the incorrect latency setting.
I've just submitted your patch,
thank you very much for your help :)
Original comment by [email protected]
on 2 Apr 2009 at 6:48
- Changed state: Fixed
from portaudiosharp.
As far as remember I never really got ALSA to work either... It worked when
nothing
else was playing, but if Amarok was running in the background it wouldn't
play...
But suspect that it might have something todo with Ubuntu PulseAudio
implementation,
not sure... I gave up, and will try to do mp3 playback with C# again sometime
in the
future...
Original comment by [email protected]
on 2 Apr 2009 at 7:17
from portaudiosharp.
Related Issues (10)
- BadImageFormatException HOT 3
- Only float[] in WriteStream HOT 3
- PInvokeStackImbalance on Pa_GetDeviceInfo HOT 2
- Invalid monodevelop project
- Breaks when no input devices are present. HOT 5
- System.AccessViolationException: Attempted to read or write protected memory. PortAudioSharp.PortAudio.Pa_OpenStream() HOT 4
- Can't call Pa_OpenStream without specifiying input or output stream parameters
- Not able to detect Asio card
- paBadStreamPtr error returned Pa_SetStreamFinishedCallback method HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from portaudiosharp.