View previous topic :: View next topic |
Author |
Message |
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Sat Jul 07, 2012 10:52 am Post subject: Derelict Ogg |
|
|
I'm writing my own audio loader and after I finish a .wav loader I want to try a .ogg loader.
Like "arcLib" I use derelict.ogg and derelict.vorbis and I copied most of the arc code: http://dpaste.dzfl.pl/502b0253
But if I try to load an .ogg file my program throws an access violation after I call ov_open (line 33), so the last output I see is ""ogg vorbis file struct"
Does anyone know why this happens? The file exists and the path is correct.
edit:
That was my fault, i forget to load derelictOgg.
But now i get this error:
Quote: | derelict.util.exception.SymbolLoadException@derelict\util\exception.d(43): Failed to load symbol oggpack_writecheck from shared library ogg.dll |
But my ogg.dll is from 2012. Have i forgot something? |
|
Back to top |
|
|
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Sat Jul 07, 2012 1:29 pm Post subject: |
|
|
I take a look in the actual ogg.def file and found no oggpack_writecheck function in there.
edit:
after i comment out this and his *B equivalent and these:
- ogg_stream_iovecin
- ogg_stream_pageout_fill
- ogg_stream_flush_fill
- ogg_sync_check
- ogg_stream_check
- vorbis_version_string
- vorbis_synthesis_idheader
it compiles without any errors.
But now i have the error i posted in my first post: I get an access violation in line 33. But this time I had loaded DerelictAL, DerelictVorbis and DerelictOgg and link the required .libs and have actual .dlls.
What's wrong? |
|
Back to top |
|
|
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Sun Jul 08, 2012 2:39 am Post subject: |
|
|
I fix it with loading DerelictVorbisFile and comment out again, this time: ov_read_filter. The derelict doku is incomplete, there is nothing about ogg or vorbis.
But now i get this message
if (ov_open(fp, &vf, null, 0) < 0) {
throw new Exception(filename ~ " is not an Ogg Vorbis file.");
}
every time i try to load an .ogg file. These .ogg files works fine with sfml, so I think they are valid. |
|
Back to top |
|
|
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Sun Jul 08, 2012 6:35 am Post subject: |
|
|
I fix it by myself.
Really dead forum here. |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Sun Jul 08, 2012 7:11 am Post subject: |
|
|
No, not dead. I check the forum once or twice a day at least, often more. Today being Sunday, I was a bit late getting to it. Glad to see you worked it out. _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
|
mutable
Joined: 22 Jun 2010 Posts: 87
|
Posted: Sun Jul 08, 2012 7:15 am Post subject: |
|
|
I would be glad if you can tell me why derelict has such functions which are not in the dll. |
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
Posted: Sun Jul 08, 2012 9:05 pm Post subject: |
|
|
Could be because you are using an older version of the DLL, or because the interface has changed since DerelictOGG was last updated. I don't know. It's something you can easily check yourself. But I will look into it when I get a chance. I intend to port the DerelictOGG stuff to Derelict3, at which time I'll also update the Derelict2 version. _________________ The One With D | The One With Aldacron | D Bits |
|
Back to top |
|
|
|