Changeset 68376 in vbox for trunk/src/VBox
- Timestamp:
- Aug 10, 2017 4:16:01 PM (7 years ago)
- Location:
- trunk/src/VBox/Devices/Audio
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostALSAAudio.cpp
r68272 r68376 921 921 } 922 922 923 LogFunc(("cFrames=%ld, rc=%Rrc\n", framesAvail, rc)); 923 924 return rc; 924 925 } … … 957 958 static int drvHostALSAAudioStreamCtl(snd_pcm_t *phPCM, bool fPause) 958 959 { 960 int rc = VINF_SUCCESS; 961 959 962 int err; 960 963 if (fPause) … … 964 967 { 965 968 LogRel(("ALSA: Error stopping stream %p: %s\n", phPCM, snd_strerror(err))); 966 r eturn VERR_ACCESS_DENIED;969 rc = VERR_ACCESS_DENIED; /** @todo Find a better rc. */ 967 970 } 968 971 } … … 973 976 { 974 977 LogRel(("ALSA: Error preparing stream %p: %s\n", phPCM, snd_strerror(err))); 975 return VERR_ACCESS_DENIED; 976 } 977 } 978 979 return VINF_SUCCESS; 978 rc = VERR_ACCESS_DENIED; /** @todo Find a better rc. */ 979 } 980 else 981 { 982 err = snd_pcm_start(phPCM); 983 if (err < 0) 984 { 985 LogRel(("ALSA: Error starting stream %p: %s\n", phPCM, snd_strerror(err))); 986 rc = VERR_ACCESS_DENIED; /** @todo Find a better rc. */ 987 } 988 } 989 } 990 991 return rc; 980 992 } 981 993 -
trunk/src/VBox/Devices/Audio/alsa_mangling.h
r61523 r68376 6 6 7 7 /* 8 * Copyright (C) 2013-201 6Oracle Corporation8 * Copyright (C) 2013-2017 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 45 45 #define snd_pcm_readi ALSA_MANGLER(snd_pcm_readi) 46 46 #define snd_strerror ALSA_MANGLER(snd_strerror) 47 #define snd_pcm_start ALSA_MANGLER(snd_pcm_start) 47 48 #define snd_pcm_drop ALSA_MANGLER(snd_pcm_drop) 48 49 #define snd_pcm_resume ALSA_MANGLER(snd_pcm_resume) -
trunk/src/VBox/Devices/Audio/alsa_stubs.c
r64632 r68376 5 5 6 6 /* 7 * Copyright (C) 2006-201 6Oracle Corporation7 * Copyright (C) 2006-2017 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 89 89 (pcm, buffer, size)) 90 90 PROXY_STUB(snd_strerror, const char *, (int errnum), (errnum)) 91 PROXY_STUB(snd_pcm_start, int, (snd_pcm_t *pcm), (pcm)) 91 92 PROXY_STUB(snd_pcm_drop, int, (snd_pcm_t *pcm), (pcm)) 92 93 PROXY_STUB(snd_pcm_resume, int, (snd_pcm_t *pcm), (pcm)) … … 154 155 ELEMENT(snd_pcm_readi), 155 156 ELEMENT(snd_strerror), 157 ELEMENT(snd_pcm_start), 156 158 ELEMENT(snd_pcm_drop), 157 159 ELEMENT(snd_pcm_resume),
Note:
See TracChangeset
for help on using the changeset viewer.