Skip to content

Callback does not time correctly #179

@Mec-iS

Description

@Mec-iS

As found in RustAudio/synth -> RustAudio/synth#50

At this line of the example whenever a synth is started sounds never stop playing as the time and the counter do not flow:

TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.0016780045351473924 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.00022675736961451248 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.0016780045351473924 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.00022675736961451248 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.0016780045351473924 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.00022675736961451248 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.0016780045351473924 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.00022675736961451248 }
TIMER >>>>>>>> 0.0
TIME >>>>>>> OutputCallbackTimeInfo { current: 0.0, buffer_dac: 0.0016780045351473924 }
TIMER >>>>>>>> 0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions