Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding method 'getAudioSessionId()' #5

Open
AppWerft opened this issue Apr 22, 2016 · 7 comments
Open

adding method 'getAudioSessionId()' #5

AppWerft opened this issue Apr 22, 2016 · 7 comments

Comments

@AppWerft
Copy link

AppWerft commented Apr 22, 2016

Hi,
for using of visualizer (https://github.com/AppWerft/Ti.AudioVisualizerView) I propose the add 2 methodes:

//in AudioPlayerProxy.java:
@Kroll.method
public int getAudioSessionId() {
        MediaPlayerWrapper s = getSound();
        if (s != null) {
            return s.getAudioSessionId();
        }
        return 0;
}

//in MediaPlayerWrapper.java:   
public int getAudioSessionId() {
        int id = 0;
        if (mp != null) {
            id = mp.getAudioSessionId();
        } 
        return id;
}

Cheers!

@AndrewNatoli
Copy link
Member

I'm open to it. Would you like to submit a pull request?

@AppWerft
Copy link
Author

I have tried, comes a auth. error back. I will try it again.

@AndrewNatoli
Copy link
Member

An auth error.... from Titanium or from GitHub? If you fork the repository and commit to your fork it should work.... hmmm

@AppWerft
Copy link
Author

AppWerft commented May 2, 2016

Hi Andrew,

I'm working on the probleme. Currently the module doesn't work with
Visualizer class althought the "original" TiMediaAufioPlayer works
(Titanium player uses the Mediaplayer class too).

Best regards

Rainer

Am 02/05/16 um 18:02 schrieb Andrew Natoli:

An auth error.... from Titanium or from GitHub? If you fork the
repository and commit to your fork it should work.... hmmm


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#5 (comment)

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@AndrewNatoli
Copy link
Member

Thanks for the update. I'm not familiar with using Ti.AudioVisualizerView and I don't have the time to experiment with it but is there anything the module should support that would help you implement this? Otherwise I'll look forward to an update whenever you can get to it; no rush or anything.

Thanks!

  • Andrew

@AppWerft
Copy link
Author

AppWerft commented May 3, 2016

Hi Andrew,

Visualizer is am android class (= a hook) that works between Mediaplayer
or AudioTrack. This class give us in very short times details about
volume and/or fft (frequencies). If I satrt with audioSessionId '0' is
analyses the mixer out. If I want visualise the output of special
Mediaplayer I need its audioID. Anyway I will look deeper in your code
and analyse why it not cooperates.

Rainer

Am 03/05/16 um 17:42 schrieb Andrew Natoli:

Thanks for the update. I'm not familiar with using
Ti.AudioVisualizerView and I don't have the time to experiment with it
but is there anything the module should support that would help you
implement this? Otherwise I'll look forward to an update whenever you
can get to it; no rush or anything.

Thanks!

  • Andrew


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#5 (comment)

Dipl.-Ing. Rainer Schleevoigt
Certified TYPO3 Integrator
Certified Titanium App Developer

Novalisweg 10

22303 Hamburg
℡ 040 60812460
|Ust-ID: DE239491976|||||||

@AndrewNatoli
Copy link
Member

Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants