VirtualBox

Changeset 20096 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
May 27, 2009 3:36:30 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
47844
Message:

VBox/pdmdrv.h,TM: user argument and flags for driver timers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/audio.c

    r19507 r20096  
    16111611}
    16121612
    1613 static void audio_timer_helper (PPDMDRVINS pDrvIns, PTMTIMER pTimer)
    1614 {
    1615     AudioState *s = &glob_audio_state;
     1613static DECLCALLBACK(void) audio_timer_helper (PPDMDRVINS pDrvIns, PTMTIMER pTimer, void *pvUser)
     1614{
     1615    AudioState *s = (AudioState *)pvUser;
    16161616    audio_timer (s);
    16171617}
     
    16281628    LIST_INIT (&s->cap_head);
    16291629
    1630     rc = PDMDrvHlpTMTimerCreate (pDrvIns, TMCLOCK_VIRTUAL,
    1631                                  audio_timer_helper, "Audio timer", &s->ts);
     1630    rc = PDMDrvHlpTMTimerCreate (pDrvIns, TMCLOCK_VIRTUAL, audio_timer_helper,
     1631                                 &glob_audio_state, 0, "Audio timer", &s->ts);
    16321632    if (RT_FAILURE (rc))
    16331633        return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette