Hello! Nim beginner over here, playing around with wNim and nimbass to learn 
nim by creating an audio player. The problem I have is that, no matter how I 
try to do it, I can't seem to get an audio file to be correctly made into a 
stream. The nimbass documentation says that the file path, on 
BASS_StreamCreateFile must be a pointer, and so I do the casting, but nothing 
seems to work. For example, one of the ways I tried to do this:
    
    
    var diag = FileDialog(frame, "Select audio file to load...", "", "", "Audio 
files (*.mp3, *.ogg)|*.mp3;*.ogg", style=wFdFileMustExist)
      diag.showModal()
      var path = diag.getPath()
      diag.final()
      sound = BASS_StreamCreateFile(false, cast[pointer](path), cast[QWORD](0), 
cast[QWORD](0), cast[DWORD](0))
    
    
    Run

Any ideas? And sorry if formating or anything isn't correct, blind user here.

Reply via email to