Csound Csound-dev Csound-tekno Search About

[Csnd] Sample rate problem on Android

Date2013-06-05 18:22
Fromhcenteno
Subject[Csnd] Sample rate problem on Android
I'm making an Android app using csound-android-6.00.0rc2 on a Galaxy SIII.
Everything works fine at sr=44100 but when I switch to sr=48000 it fails to
start. 

I checked the introduction_csound_android.pdf document in Git (thank you
Victor) but there's no mention of any special sample rate limitations or
settings. Is this a problem with my specific device?

This is the LogCat:

06-05 13:06:29.121: I/AndroidCsound(3992): set callbacks
06-05 13:06:29.121: I/AndroidCsound(3992): callbacks set
06-05 13:06:29.121: I/AndroidCsound(3992): UnifiedCSD: 
/data/data/net.hcenteno.ambiexplorer/cache/temp1820732315.csd
06-05 13:06:29.121: I/AndroidCsound(3992): STARTING FILE
06-05 13:06:29.121: I/AndroidCsound(3992): Creating options
06-05 13:06:29.121: I/AndroidCsound(3992): Creating orchestra
06-05 13:06:29.121: I/AndroidCsound(3992): Creating score
06-05 13:06:29.141: I/AndroidCsound(3992): Parsing successful!
06-05 13:06:29.161: I/AndroidCsound(3992): Elapsed time at end of orchestra
compile: real: 4.861s, CPU: 4.861s
06-05 13:06:29.161: I/AndroidCsound(3992): sorting score ...
06-05 13:06:29.161: I/AndroidCsound(3992): 	... done
06-05 13:06:29.161: I/AndroidCsound(3992): Elapsed time at end of score
sort: real: 4.863s, CPU: 4.863s
06-05 13:06:29.161: I/AndroidCsound(3992): Csound version 6.00rc2 (float
samples) May 23 2013
06-05 13:06:29.161: I/AndroidCsound(3992): displays suppressed
06-05 13:06:29.161: I/AndroidCsound(3992): 0dBFS level = 1.0
06-05 13:06:29.161: I/AndroidCsound(3992): orch now loaded
06-05 13:06:29.171: I/AndroidCsound(3992): audio buffered in 256
sample-frame blocks
06-05 13:06:29.171: I/AndroidCsound(3992): Failed to initialise real time
audio output


Hector







--
View this message in context: http://csound.1045644.n5.nabble.com/Sample-rate-problem-on-Android-tp5724226.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2013-06-05 18:37
FromVictor Lazzarini
SubjectRe: [Csnd] Sample rate problem on Android
It does look a limitation of your device. But I'll look at the code.

Victor
On 5 Jun 2013, at 18:22, hcenteno wrote:

> I'm making an Android app using csound-android-6.00.0rc2 on a Galaxy SIII.
> Everything works fine at sr=44100 but when I switch to sr=48000 it fails to
> start. 
> 
> I checked the introduction_csound_android.pdf document in Git (thank you
> Victor) but there's no mention of any special sample rate limitations or
> settings. Is this a problem with my specific device?
> 
> This is the LogCat:
> 
> 06-05 13:06:29.121: I/AndroidCsound(3992): set callbacks
> 06-05 13:06:29.121: I/AndroidCsound(3992): callbacks set
> 06-05 13:06:29.121: I/AndroidCsound(3992): UnifiedCSD: 
> /data/data/net.hcenteno.ambiexplorer/cache/temp1820732315.csd
> 06-05 13:06:29.121: I/AndroidCsound(3992): STARTING FILE
> 06-05 13:06:29.121: I/AndroidCsound(3992): Creating options
> 06-05 13:06:29.121: I/AndroidCsound(3992): Creating orchestra
> 06-05 13:06:29.121: I/AndroidCsound(3992): Creating score
> 06-05 13:06:29.141: I/AndroidCsound(3992): Parsing successful!
> 06-05 13:06:29.161: I/AndroidCsound(3992): Elapsed time at end of orchestra
> compile: real: 4.861s, CPU: 4.861s
> 06-05 13:06:29.161: I/AndroidCsound(3992): sorting score ...
> 06-05 13:06:29.161: I/AndroidCsound(3992): 	... done
> 06-05 13:06:29.161: I/AndroidCsound(3992): Elapsed time at end of score
> sort: real: 4.863s, CPU: 4.863s
> 06-05 13:06:29.161: I/AndroidCsound(3992): Csound version 6.00rc2 (float
> samples) May 23 2013
> 06-05 13:06:29.161: I/AndroidCsound(3992): displays suppressed
> 06-05 13:06:29.161: I/AndroidCsound(3992): 0dBFS level = 1.0
> 06-05 13:06:29.161: I/AndroidCsound(3992): orch now loaded
> 06-05 13:06:29.171: I/AndroidCsound(3992): audio buffered in 256
> sample-frame blocks
> 06-05 13:06:29.171: I/AndroidCsound(3992): Failed to initialise real time
> audio output
> 
> 
> Hector
> 
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://csound.1045644.n5.nabble.com/Sample-rate-problem-on-Android-tp5724226.html
> Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Date2013-06-05 18:50
FromVictor Lazzarini
SubjectRe: [Csnd] Sample rate problem on Android
Ops, the 48k case was missing in the opensl code. Fixed in GIT.
On 5 Jun 2013, at 18:37, Victor Lazzarini wrote:

> It does look a limitation of your device. But I'll look at the code.
> 
> Victor
> On 5 Jun 2013, at 18:22, hcenteno wrote:
> 
>> I'm making an Android app using csound-android-6.00.0rc2 on a Galaxy SIII.
>> Everything works fine at sr=44100 but when I switch to sr=48000 it fails to
>> start. 
>> 
>> I checked the introduction_csound_android.pdf document in Git (thank you
>> Victor) but there's no mention of any special sample rate limitations or
>> settings. Is this a problem with my specific device?
>> 
>> This is the LogCat:
>> 
>> 06-05 13:06:29.121: I/AndroidCsound(3992): set callbacks
>> 06-05 13:06:29.121: I/AndroidCsound(3992): callbacks set
>> 06-05 13:06:29.121: I/AndroidCsound(3992): UnifiedCSD: 
>> /data/data/net.hcenteno.ambiexplorer/cache/temp1820732315.csd
>> 06-05 13:06:29.121: I/AndroidCsound(3992): STARTING FILE
>> 06-05 13:06:29.121: I/AndroidCsound(3992): Creating options
>> 06-05 13:06:29.121: I/AndroidCsound(3992): Creating orchestra
>> 06-05 13:06:29.121: I/AndroidCsound(3992): Creating score
>> 06-05 13:06:29.141: I/AndroidCsound(3992): Parsing successful!
>> 06-05 13:06:29.161: I/AndroidCsound(3992): Elapsed time at end of orchestra
>> compile: real: 4.861s, CPU: 4.861s
>> 06-05 13:06:29.161: I/AndroidCsound(3992): sorting score ...
>> 06-05 13:06:29.161: I/AndroidCsound(3992): 	... done
>> 06-05 13:06:29.161: I/AndroidCsound(3992): Elapsed time at end of score
>> sort: real: 4.863s, CPU: 4.863s
>> 06-05 13:06:29.161: I/AndroidCsound(3992): Csound version 6.00rc2 (float
>> samples) May 23 2013
>> 06-05 13:06:29.161: I/AndroidCsound(3992): displays suppressed
>> 06-05 13:06:29.161: I/AndroidCsound(3992): 0dBFS level = 1.0
>> 06-05 13:06:29.161: I/AndroidCsound(3992): orch now loaded
>> 06-05 13:06:29.171: I/AndroidCsound(3992): audio buffered in 256
>> sample-frame blocks
>> 06-05 13:06:29.171: I/AndroidCsound(3992): Failed to initialise real time
>> audio output
>> 
>> 
>> Hector
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> --
>> View this message in context: http://csound.1045644.n5.nabble.com/Sample-rate-problem-on-Android-tp5724226.html
>> Sent from the Csound - General mailing list archive at Nabble.com.
>> 
>> 
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>> 
> 
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
> 
> 
> 
> 
> 
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie