Click here to Skip to main content
16,007,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Name that API Pin
Mircea Puiu30-Jan-05 0:39
Mircea Puiu30-Jan-05 0:39 
GeneralRe: Name that API Pin
Michael Dunn30-Jan-05 7:52
sitebuilderMichael Dunn30-Jan-05 7:52 
GeneralRe: Name that API Pin
PJ Arends30-Jan-05 11:17
professionalPJ Arends30-Jan-05 11:17 
GeneralRe: Name that API Pin
Blake Miller31-Jan-05 5:52
Blake Miller31-Jan-05 5:52 
GeneralRe: Name that API Pin
Michael Dunn31-Jan-05 6:47
sitebuilderMichael Dunn31-Jan-05 6:47 
QuestionHow to use the member function(SetCursorDriver()) of CRdc(remote data control)? Pin
Paul. Z29-Jan-05 20:44
Paul. Z29-Jan-05 20:44 
Generalhanging of browser window after pressing button Pin
sanyuja29-Jan-05 7:08
sanyuja29-Jan-05 7:08 
GeneralRe: hanging of browser window after pressing button Pin
Bob Ciora30-Jan-05 6:26
Bob Ciora30-Jan-05 6:26 
Are you sure that 0 is the value you're looking for to terminate the loop? It could be that your logic is flawed. Checking the DirectSound documentation, IDirectSoundBuffer::GetStatus returns a combination of one or more of the following values:
DSBSTATUS_BUFFERLOST - The buffer is lost and must be restored before it can
be played or locked. 

DSBSTATUS_LOOPING - The buffer is being looped. If this value is not set, the
buffer will stop when it reaches the end of the sound data. This value is
returned only in combination with DSBSTATUS_PLAYING. 

DSBSTATUS_PLAYING - The buffer is playing. If this value is not set, the
buffer is stopped. 

DSBSTATUS_LOCSOFTWARE - The buffer is playing in software. Set only for
buffers created with the DSBCAPS_LOCDEFER flag. 

DSBSTATUS_LOCHARDWARE - The buffer is playing in hardware. Set only for
buffers created with the DSBCAPS_LOCDEFER flag. 

DSBSTATUS_TERMINATED - The buffer was prematurely terminated by the voice
manager and is not playing. Set only for buffers created with the 
DSBCAPS_LOCDEFER flag.


I'm not sure what values your own version of GetStatus returns,
but you may want to check for errors that may have terminated the playback. If some error occurs, can your own GetStatus *ever* return 0?

Just firing off some ideas...


Bob Ciora
Generalabs() function operator Pin
tnvols29-Jan-05 6:24
tnvols29-Jan-05 6:24 
GeneralRe: abs() function operator Pin
Maximilien29-Jan-05 6:30
Maximilien29-Jan-05 6:30 
GeneralRe: abs() function operator Pin
toxcct29-Jan-05 22:32
toxcct29-Jan-05 22:32 
GeneralRead image and get pixel values Pin
tttyip29-Jan-05 4:44
tttyip29-Jan-05 4:44 
GeneralRe: Read image and get pixel values Pin
Chris Losinger29-Jan-05 7:51
professionalChris Losinger29-Jan-05 7:51 
GeneralLoadFrame() & CChildFrame Pin
Kastellanos Nikos29-Jan-05 4:36
Kastellanos Nikos29-Jan-05 4:36 
GeneralRe: LoadFrame() & CChildFrame Pin
Mircea Puiu30-Jan-05 0:48
Mircea Puiu30-Jan-05 0:48 
GeneralRe: LoadFrame() & CChildFrame Pin
Anonymous30-Jan-05 1:30
Anonymous30-Jan-05 1:30 
Generaluse crystal report Pin
javad_200529-Jan-05 3:37
javad_200529-Jan-05 3:37 
GeneralRe: use crystal report Pin
Mircea Puiu30-Jan-05 0:56
Mircea Puiu30-Jan-05 0:56 
Generalifstream::open() Pin
cpp_Fritz29-Jan-05 1:08
susscpp_Fritz29-Jan-05 1:08 
GeneralRe: ifstream::open() Pin
toxcct29-Jan-05 1:50
toxcct29-Jan-05 1:50 
GeneralRe: ifstream::open() Pin
cpp_fritz29-Jan-05 2:13
susscpp_fritz29-Jan-05 2:13 
GeneralRe: ifstream::open() Pin
toxcct29-Jan-05 2:18
toxcct29-Jan-05 2:18 
GeneralRe: ifstream::open() Pin
cpp_fritz29-Jan-05 3:17
susscpp_fritz29-Jan-05 3:17 
GeneralRe: ifstream::open() Pin
PJ Arends29-Jan-05 9:22
professionalPJ Arends29-Jan-05 9:22 
GeneralStatic member function Pin
phijophlip29-Jan-05 0:59
phijophlip29-Jan-05 0:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.