Comments (7)
imagine I want to sync some video frames to audio stream:
with startStream streamtime starts increasing with each audiobuffer
with stopStream streamtime stops increasing so video frames stop increasing
then startStream again and streamtime goes on increasing and video frames procced
But if I want to rewind in order to play from sec. 5 in the movie (with video frames synced to streamtime) I should be able to do setStreamTime(5)
from rtaudio.
Hi Victor,
RtAudio is designed to work only with realtime audio streams. So, it is not possible to backup in a stream (no data is saved). Or am I misunderstanding you?
βgary
On Apr 23, 2014, at 3:57 PM, Victor Bombi [email protected] wrote:
imagine I want to sync some video frames to audio stream:
with startStream streamtime starts increasing with each audiobuffer
with stopStream streamtime stops increasing so video frames stop increasing
then startStream again and streamtime goes on increasing and video frames proccedBut if I want to rewind in order to play from sec. 5 in the movie (with video frames synced to streamtime) I should be able to do setStreamTime(5)
β
Reply to this email directly or view it on GitHub.
from rtaudio.
The purpose is only to change the clock that streamtime provides in order to sync things to it (for example some video frames)
I understand that if I am playing an audio file I would have to rewind that file by myself
from rtaudio.
I just added a new setStreamTime() function in the new release ... it was easy to do. For the moment, I only accept times >= 0.0, unless someone can convince me it should allow negative times too.
from rtaudio.
Thanks alot!!!
Setting negative streamtime could be useful to implement pre-count: When something is queued on time 0 secs but you must do something prior to that (As in sequencers for example).
But if it were too complicated, user could always queue the first event on a positive time value.
victor
from rtaudio.
Hi Victor,
It would be extremely simple to change it to allow negative values. If you think it is useful, I will do that.
Regards,
βgary
On Apr 26, 2014, at 4:01 PM, Victor Bombi [email protected] wrote:
Thanks alot!!!
Setting negative streamtime could be useful to implement pre-count: When something is queued on time 0 secs but you must do something prior to that (As in sequencers for example).
But if it were too complicated, user could always queue the first event on a positive time value.victor
β
Reply to this email directly or view it on GitHub.
from rtaudio.
Yes, it would be useful for implementing pre-count in a sequencer.
By the way I have the work done in https://github.com/sonoro1234/luaRtAudio
with this github RtAudio as a submodule.
Regards
victor
from rtaudio.
Related Issues (20)
- MacOS: Bluetooth devices change channel count during usage. HOT 1
- clarification on behavior of functions HOT 6
- Airplay from MacOS to AppleTV, RTAUDIO_SYSTEM_ERROR 10 HOT 2
- Stream recording on PulseAudio starts before startStream being called HOT 4
- Question: Is it possible to get the audio data of the outputDevice HOT 2
- Tests fail to compile HOT 2
- meson build fails with non-matching version number HOT 3
- soname version bump for RtAudio-6.0.0 HOT 2
- Missing symbols in version >= 6 HOT 7
- Undefined Reference to pthread_mutex_* in MinGW since 6.0.0 HOT 1
- Unstable ASIO support? HOT 4
- Please set 6.0.1 as latest GitHub release HOT 1
- Is it possible to record the sound from the speaker on MacOSX?
- Could someone provide an example for using RtAudioErrorCallback in constructor?
- fyi: working on a new python-rtaudio project
- Was 6.0.1 retagged? HOT 2
- Incorrect implementation of the amplitude when calculating the output signal
- Build with PulseAudio support fails on macOS: `RtAudio.cpp: error: 'sched_getscheduler' was not declared in this scope` HOT 2
- some tests use signed long instead of int32_t causing issues on 64-bit systems
- Update the changelog HOT 1
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 rtaudio.