Search found 10 matches

by bzb
Sun Dec 06, 2015 5:16 pm
Forum: General Audio Programming
Topic: Get sample number while recording
Replies: 9
Views: 2275

Re: Get sample number while recording

Thanks steve!

should I try the 'compiling audacity' forum? if so - can you move this thread there or should I just post a new one there?
by bzb
Fri Dec 04, 2015 11:53 pm
Forum: General Audio Programming
Topic: Get sample number while recording
Replies: 9
Views: 2275

Re: Get sample number while recording

Can somebody please direct me to the function that copies the last recorded frame into the file? I need to get a timestamp of that event

thanks
by bzb
Tue Nov 24, 2015 3:03 pm
Forum: General Audio Programming
Topic: Get sample number while recording
Replies: 9
Views: 2275

Re: Get sample number while recording

Thanks for your replies. waxcylinder - I am trying to log the computer's clock with the time since recording began in real time, so I need it while the recording is ongoing. See update below! steve (or anyone else who might know) - I am having trouble with Pa_GetStreamTime. I am passing PaStream *mP...
by bzb
Sat Nov 21, 2015 12:21 pm
Forum: General Audio Programming
Topic: Get sample number while recording
Replies: 9
Views: 2275

Re: Get sample number while recording

Hi Steve, by "current sample number" I mean the count of the samples from the start of the recording. I have data from a second machine, that I need to synchronize with the data recorded by audacity. the reason I need CLOCK_MONOTIONIC is that the way this is done is by performing a synchronization b...
by bzb
Sat Nov 21, 2015 11:27 am
Forum: General Audio Programming
Topic: Get sample number while recording
Replies: 9
Views: 2275

Get sample number while recording

Hi, I am trying to create a logfile that is being created while Audacity is recording - I need this logfile log: 1. current CLOCK_MONOTONIC. 2. current sample number being recorded. Currently I managed to get a logging function to run on a separate thread (while recording audio) and log CLOCK_MONOTO...
by bzb
Sat Nov 21, 2015 11:21 am
Forum: General Audio Programming
Topic: Writing timestamp log during onRecord crashes X.Org [SOLVED]
Replies: 5
Views: 1810

Re: Writing timestamp log during onRecord crashes [SOLVED]

Managed to solve this, it was a basic C++ mistake.

Thanks for the help
by bzb
Sat Nov 14, 2015 2:33 pm
Forum: General Audio Programming
Topic: Writing timestamp log during onRecord crashes X.Org [SOLVED]
Replies: 5
Views: 1810

Re: Writing timestamp log during onRecord causing X server c

Linux distribution: Ubuntu 14.04 LTS Audacity source being compiled: Version 2.1.1, made changed to ControlToolBar.ccp and .h I attachd the Xorg log - nothing therethat I have clue about to be frank. backtrace (printout in the terminal, not sure that's what you mean): (process:4065): GLib-GObject-WA...
by bzb
Sun Nov 08, 2015 8:53 pm
Forum: General Audio Programming
Topic: Writing timestamp log during onRecord crashes X.Org [SOLVED]
Replies: 5
Views: 1810

Writing timestamp log during onRecord crashes X.Org [SOLVED]

Hi, I am adding a feature I need that creates a log file when onRecord initiates, but for some reason it is causing Audacity to crash. this is the relevant part of the code I have added, followed by the failure I receive - any help would be much appreciated. Log class I created to build the logfile:...
by bzb
Fri Oct 23, 2015 2:39 pm
Forum: Compiling Audacity
Topic: source code structure and 'start recording' function
Replies: 2
Views: 985

source code structure and 'start recording' function

Hi, I want to add a feature to Audacity which has the following functionality: when user starts a new recording, the pc's absolute time is logged in a buffer at a constant time interval, and written to a log file when the user stops the recording. I would appreciate it if someone would tell me what ...