-
Notifications
You must be signed in to change notification settings - Fork 59
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
libltc decoder returning zero #26
Comments
That looks correct. Also "returning zero" means no error, I guess you're not seeing any decoded Timecode values. Is With portaudio's sample-format Can you dump the incoming LTC to a file? That might be helpful to check if it's valid LTC or shed some more light on the issue. |
yes it is non-interleaved floating point audio, i'm parsing the channels out how would I confirm that this is valid LTC? |
I'd first do a visual check in some sound-file editor. Expect 2KHz and 4KHz square waves (gapless) like (there are 2 LTC sources overlaid in the image, and the timescale isn't visible, but it should give you a general idea) If you have a short snippet (1-2 seconds should suffice) upload it and I can have a look. |
That looks fine. The LTC sync word is even visible in the data. Is that a dump of |
i recorded with reaper and opened with audacity actually...for a direct dump it would take some more effort |
or try vice versa: test the decoder with some raw data (dumped from the .wav, IIRC audacity can export raw audio data) |
i'm thinking now that this could be a floating point or float32 issue i.e. exponent/mantissa...will confirm shortly. |
Well, that means LTC without date-information is detected. So it looks like a step forward and it indicates that the issue is indeed with interpreting the portaudio buffer as float array. It's still odd that the same timecode is parsed over and over again. The huge numbers at the end are the correspond to the index passed as last argument to |
i'm using the msvs compiler and targeting x86 |
if I build in linux, make check passes the self test, but still same issue (decoding to zero) using a contiguous array |
I'm reading in realtime LTC from a timecode generator in through PortAudio in order to record it. Then I pass samples to the decoder:
////
data.decoder = ltc_decoder_create(data.apv, 1024);
////
in the callback function:
... etc etc
i've tried changing the window size, apv, queue size, etc, all returning zero. it seems that the maximum and minimum are being read, however.
The text was updated successfully, but these errors were encountered: