GithubHelp home page GithubHelp logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 27, 2024
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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.