Author Topic: How do I play the onlinefile(.m4a) on the XP system  (Read 220 times)

juhuagai

  • Posts: 2
Such as the title.
I have a network song url. (http://m4.9ku.com/a859/8595387mimld.m4a)
I want to play the url on the XP system by bass.dll and bass_aac.dll.
But I noticed that bass_aac.dll only provides the following interfaces:

HSTREAM BASSAACDEF(BASS_AAC_StreamCreateFile)(BOOL mem, const void *file, QWORD offset, QWORD length, DWORD flags);
HSTREAM BASSAACDEF(BASS_AAC_StreamCreateURL)(const char *url, DWORD offset, DWORD flags, DOWNLOADPROC *proc, void *user);
HSTREAM BASSAACDEF(BASS_AAC_StreamCreateFileUser)(DWORD system, DWORD flags, const BASS_FILEPROCS *procs, void *user);
HSTREAM BASSAACDEF(BASS_MP4_StreamCreateFile)(BOOL mem, const void *file, QWORD offset, QWORD length, DWORD flags);
HSTREAM BASSAACDEF(BASS_MP4_StreamCreateFileUser)(DWORD system, DWORD flags, const BASS_FILEPROCS *procs, void *user);

There seems to be a lack of an interface like this:BASS_MP4_StreamCreateURL.

How should I deal with that.Online waiting...Quite urgent...
« Last Edit: 22 Apr '17 - 07:15 by juhuagai »

Ian @ un4seen

  • Administrator
  • Posts: 20389
Re: How do I play the onlinefile(.m4a) on the XP system
« Reply #1 on: 24 Apr '17 - 17:30 »
BASS_AAC_StreamCreateURL also supports MP4 files when enabled via the BASS_CONFIG_AAC_MP4 option:

Code: [Select]
BASS_SetConfig(BASS_CONFIG_AAC_MP4, 1);

If you use BASS_PluginLoad to load BASS_AAC.DLL, then BASS_StreamCreateURL will also support MP4.

juhuagai

  • Posts: 2
Re: How do I play the onlinefile(.m4a) on the XP system
« Reply #2 on: 27 Apr '17 - 12:30 »
Thank you very much. I'll try