(no subject)

View: New views
1 Messages — Rating Filter:   Alert me  

(no subject)

by arnoldj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi everyone!
 
sorry for my previous post, as i managed not to put linebreaks into my text, so i decided
to make it more easier to read
 
I Have problems playing sound with portaudio
 
The simple program I've written
( with source code uploaded to http://rapidshare.com/files/133576484/main.cpp.html for you if you
want to check it out )
produces sound in a way that i don't understand.
I wanted a simple saw wave oscillator but i had to raise the frames per buffer to very high
otherwise
the sound wasn't like a saw wave but more than something recorded at very low samplerate or even worse.
But with that very high frames per buffer amount the oscillation is not continuous.
Short silences are produced between the oscillations,
with the same length as the sounds, as if when the buffer counts
from zero to 'framesperbuffer',
then it counts again but doesn't make any sound, and repeats it again and again.
Did I write something wrong in the code?
What's happening when the buffer ends and starts again from zero ?
Another strange thing that i had to include WinMM.lib to prevent these errors

1>LINK : E:\Projects\synth\Debug\synth.exe not found or not built by the last incremental link; performing full link

1>pa_asio.obj : error LNK2019: unresolved external symbol __imp__timeGetTime@0 referenced in function "double __cdecl GetStreamTime(void *)" (?GetStreamTime@@YANPAX@Z)

1>pa_win_util.obj : error LNK2001: unresolved external symbol __imp__timeGetTime@0

1>E:\Projects\synth\Debug\synth.exe : fatal error LNK1120: 1 unresolved externals

I have Microsoft Visual c++ 2008 Express Edition, WinVista Home Basic and CMI8738 soundcard
if it helps...
 
I Hope someone can help me !
Arnold

_______________________________________________
Portaudio mailing list
Portaudio@...
http://techweb.rfa.org/mailman/listinfo/portaudio
LightInTheBox - Buy quality products at wholesale price!