I have a small problem with the cd function. I have got it to work with the cd commands but I like to use the stream_open. If I can do that I have a lot of things that I have allready done to work.
If I use the CD functions I can get all the tracks there are on a cd and just set the track I want to play. But what shall I use if I use stream_open?
If the cd is not copyprotected I can get the *.cda-file but is it enought?? And if it is protected what can I use to specify the filename?
Are here anyone that have and example??
- RadioDJ asked 13 years ago
I have tried the mediaplayer on a third machine.
I can play file and internetstream but if I click load CD the program crash.
The error is:
Program has made an anlegal operation in FMOD.dll on adress 018F:10024CDF ……
I also have tested the cddatest program and after I have put in the cd and press any key I get the same error, but now in adress 018F:10025AF3
Anyone that have an answer???
I have tried both but the problem is about the same.
Here is the dump of fmodcdda.log
FMOD Version: 3.73
OS Version: 4.10 Build 67766446 A
C:\ = DRIVE_FIXED
D:\ = DRIVE_FIXED
E:\ = DRIVE_FIXED
F:\ = DRIVE_FIXED
G:\ = DRIVE_CDROM
ERROR: FSOUND_CDDA_NtScsi_GetFileHandle(6) failed
H:\ = DRIVE_NO_ROOT_DIR
I:\ = DRIVE_NO_ROOT_DIR
J:\ = DRIVE_NO_ROOT_DIR
K:\ = DRIVE_NO_ROOT_DIR
L:\ = DRIVE_NO_ROOT_DIR
M:\ = DRIVE_NO_ROOT_DIR
N:\ = DRIVE_NO_ROOT_DIR
O:\ = DRIVE_NO_ROOT_DIR
P:\ = DRIVE_NO_ROOT_DIR
Q:\ = DRIVE_NO_ROOT_DIR
R:\ = DRIVE_REMOTE
S:\ = DRIVE_REMOTE
T:\ = DRIVE_REMOTE
U:\ = DRIVE_REMOTE
V:\ = DRIVE_NO_ROOT_DIR
W:\ = DRIVE_NO_ROOT_DIR
X:\ = DRIVE_NO_ROOT_DIR
Y:\ = DRIVE_NO_ROOT_DIR
Z:\ = DRIVE_NO_ROOT_DIR
00:00:00 = DTYPE_CDROM3
If I use Force ASPI (-a) in the cddatest I get this
Fmod Version 3.73
OS Version 4.10 Bulid 67766446 A
I´m using Visual Basic 6 with servicepack 5, IE 5.5 and Win98 SE
I have tried it on a Win XP mashine also but the same problem.
I have tried both on a IDE and a SCSI CD-rom, the same thing
I hope this can help you…
‘ open your whole cd as ‘one stream’
TempPointer = FSOUND_Stream_Open(“X:”, 0&, 0&, 0&)
If not TempPointer = 0& Then
‘ select your track with the setsubstream-function
TempResult = FSOUND_Stream_SetSubStream(TempPointer, TempDrvByte – 1&)
If not TempResult = 0& Then
‘ now access your cd-track as a standart media file (like mp3/wav/ogg)
Your ASPI layer might be bad. Download Adaptec’s aspichk program here :
Run it and send me the results.
I have run it on one of my machines and this is the answer
WNASPI32.DLL 1.00(1) 05/05/99 36864
WINASPI.DLL 1.00(65) 05/05/99 3536
APIX.VXD 4.00(952) 05/05/99 29497
ASPIENUM.VXD N/A N/A N/A
It also say: “ASPI is not properly installed. One or more components have been replaced with older versions of the software.”
I can´t try it on the machine that I´m using to program but this machine does the same thing. Can it be the same problem in 3 machines??
I have test it but I can´t get it to work.
I´m using fmod version 3.7.
The only thing I get is that the returnpointer is 0
Have something been changed in 3.73??
Dim l_Result as Long
l_Result = FSOUND_Stream_Open(“d:”, 0&, 0&, 0&)
l_Result is 0 every time.
[quote="RadioDJ":urcc7psc]It also say: “ASPI is not properly installed. One or more components have been replaced with older versions of the software.”[/quote:urcc7psc]
You need to fix your ASPI layer. Go here :
…and download “Force ASPI”.
This is what I use:
SelectedDrive is previously chosen and in my case is “H:” or “I:”
After initialisation Open the CD:
CDHandle = FSOUND_Stream_Open(SelectedDrive, 0, 0, 0)
TotalTracks = FSOUND_Stream_GetNumSubStreams(CDHandle)
To play a track use:
TrackNumber is the track you want to play within the TotalTracks from above.
FSOUND_Stream_SetSubStream CDHandle, TrackNumber
Hope it helps.
Please login first to submit.