Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HemulGM/FMXAudio
FMX Audio BASS Lib for Win and Android (Component)
https://github.com/HemulGM/FMXAudio
android bass bass-library component delphi fgx fgx-firemonkey fmx vcl windows
Last synced: about 1 month ago
JSON representation
FMX Audio BASS Lib for Win and Android (Component)
- Host: GitHub
- URL: https://github.com/HemulGM/FMXAudio
- Owner: HemulGM
- Created: 2020-05-15T13:57:14.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-11-02T09:18:23.000Z (8 months ago)
- Last Synced: 2024-02-01T14:36:02.754Z (5 months ago)
- Topics: android, bass, bass-library, component, delphi, fgx, fgx-firemonkey, fmx, vcl, windows
- Language: Pascal
- Homepage:
- Size: 33.1 MB
- Stars: 42
- Watchers: 10
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-pascal - FMXAudio
README
# FMXAudio
Handle initialization
```delphi
if not FMXPlayer.Init(Handle) then
begin
ShowMessage('Error ' + FMXPlayer.LastErrorCode.ToString);
end;
```
## Sync
Play stream
```delphi
FMXPlayer.StreamURL := StreamUrl;
FMXPlayer.Play;
```
Play file
```delphi
FMXPlayer.FileName := FileName;
FMXPlayer.Play;
```
## Async
Play stream **async**
```delphi
FMXPlayer.StreamURL := StreamUrl;
FMXPlayer.PlayAsync;
```
Play file **async**
```delphi
FMXPlayer.FileName := FileName;
FMXPlayer.PlayAsync;
```
You can use properties: AutoInit, AutoPlay and AsyncYou can use the library to play sounds. And to prevent sounds from breaking off with new sounds, you must set the flag KeepPlayChannel = True;
## Windows
1. Download bass24.zip from http://www.un4seen.com (direct link http://uk.un4seen.com/files/bass24.zip ).
2. Extract the archive somewhere, copy extracted bass.dll to your project output directory.## Android
Project -> Deployment -> Add Files
1 : Library->Android->armeabi
a : libbass.so
b : libbass_aac.so
c : libbassflac.so
Remote Path : library\lib\armeabi\
2 : Library->Android->x86
a : libbass.so
b : libbass_aac.so
c : libbassflac.so
Remote Path : library\lib\x86\
3 : Library->Android->armeabi-v7a
a : libbass.so
b : libbass_aac.so
c : libbassflac.so
Remote Path : library\lib\armeabi-v7a\
Make sure library files remote path name, must be added in the Deployment window.## Info
BASS is an audio library for use in software on several platforms. Its purpose is to provide developers with powerful and efficient sample, stream (MP3, MP2, MP1, OGG, WAV, AIFF, custom generated, and more via OS codecs and add-ons), MOD music (XM, IT, S3M, MOD, MTM, UMX), MO3 music (MP3/OGG compressed MODs), and recording functions. All in a compact DLL that won't bloat your distribution.#Android
http://www.un4seen.com/forum/?topic=13225#IOS
http://www.un4seen.com/forum/?topic=10910#WinCE
http://www.un4seen.com/forum/?topic=9534#ARMLINUX
http://www.un4seen.com/forum/?topic=13804