Git Product home page Git Product logo

fmxaudio's Introduction

FMXAudio

Handle initialization

if not FMXPlayer.Init(Handle) then
begin
  ShowMessage('Error ' + FMXPlayer.LastErrorCode.ToString);
end;

Sync

Play stream

FMXPlayer.StreamURL := StreamUrl;
FMXPlayer.Play;

Play file

FMXPlayer.FileName := FileName;
FMXPlayer.Play;

Async

Play stream async

FMXPlayer.StreamURL := StreamUrl;
FMXPlayer.PlayAsync;

Play file async

FMXPlayer.FileName := FileName;
FMXPlayer.PlayAsync;

You can use properties: AutoInit, AutoPlay and Async

You 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

fmxaudio's People

Contributors

hemulgm avatar jonahzheng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fmxaudio's Issues

Initialization problem

TFMXPlayer : Get problem by initialization the component
Don't know if i have the wrong bass.dll
But it's doesn't work for me
Think for this nice work !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.