
AudioReader not implemented?
Posted Saturday, 23 July, 2011 - 19:47 by Toastgeraet| Project: | The Open Toolkit library |
| Version: | 1.0-2010-10-06 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | open |
Jump to:
Description
Visual Studio is not recognising the AudioReader class.
Thus, I can not load sound files as described in the documentation.
Any help regarding how to fix this, would be very much appreciated.


Comments
#1
AudioReader has been deprecated and exists in OpenTK.Compatibility.dll for backwards compatibility. The documentation should be updated to reflect that (which documentation is that? I couldn'tfind anything relevant in the manual).
Loading audio files falls outside the proper of this library (OpenAL and, by extension, OpenTK know nothing about file formats. They only provide the means to communicate with the audio hardware).
#2
AudioReader is referenced in Devices, Buffers, and X-Ram, shortly after the comment "//Load a .wav file from disk." Right after the bit about X-Ram, it says
AudioReader sound = new AudioReader(filename). Without a semicolon, now that I look at it ...The method listed under OpenAL Playback in Examples is the "preferred" way of doing it now, right? (Or at the very least, it's clearly one which works ...)