0
0

Hi,

I am playing a CD (cdda) and want to detect when the CD is ejected by the user.

Is there a way in FMod Ex? Fmod 3.75 returns -3 with the getOpenState function.

Thanks.

Jus

  • You must to post comments
0
0

Brett,

thanks for the quick response.

GetOpenState returns FMOD_OPENSTATE_READY, even when the CD is ejected while playing.

Any clue?

  • You must to post comments
0
0

Why not lock the tray when playing, like a burner does?

On Windows NT use [b:334zgbxn]DeviceIoControl()[/b:334zgbxn]

WINNT >= 0x0501 : IOCTL_STORAGE_EJECTION_CONTROL
WINNT >= 0x0400 : IOCTL_STORAGE_MEDIA_REMOVAL

http://windowssdk.msdn.microsoft.com/li … _codes.asp

I don’t know the codes for POSIX nor Win98 out of my head

  • You must to post comments
0
0

I don’t want to lock the tray. This is not very user-friendly.

Jus

  • You must to post comments
0
0

@Brett: any update on this?

  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.