Autor Beitrag
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Mo 05.09.05 16:43 
Hi @ all!
Ich bin grade beim Programmieren eines MediaPlayers mit BASS. Um aber 32-bit floating-point channels zu verwenden (sprich das Flag BASS_SAMPLE_FLOAT zu setzen) braucht man einen Treiber nach dem neueren WDM- Treibermodell (vor allem auf Win2000 und XP). Leider gibt es bei Win98SE ein Mischmasch...
Und genau das will ich rausfinden; ist auf dem PC ein WDM- Soundkartentreiber oder ein VxD- Teil drauf?

In der Bass-Hilfe steht da was bei dem Structure BASS_INFO. Mit "driver" könne man das rausfinden. Um dann noch alles zu kriegen soll man noch die API-Funktion GetFileVersionInfo aufrufen.

Ich schreibs aber grade im Konjunktiv, weil ichs net ganz verstehe, wie man das machen soll. Mit "driver" bekomme ich nur den Dateinamen (nix mit Dateipfad...egal würde ich vllcht auch so kriegen). Und was soll die API-Funktion dann?

Wenn jemand weiß, wie mans auf eine andere (einfachere, kürzere, etc.) rausfindet, wärs nat. auch net schlecht

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
alias5000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Di 06.09.05 18:44 
OK, also ich hab derweilen was im MSDN gefunden. Die Treiber haben immer eine Dateiversion, höher als eine bestimmte Zahl (siehe MSDN, über google).
Mein Problem ist eher die Anwendung von GetFileVersionInfo. Das Delphi-Bsp. ais der Hilfe hat auch net gefuntzt....

_________________
Programmers never die, they just GOSUB without RETURN
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Mi 07.09.05 09:45 

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean