{ "id": "103138", "key": "AC-2268", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2013-04-01T21:17:56.000+0000", "created": "2012-10-11T18:06:27.000+0000", "labels": [ "Android,", "Bitrate", "codeboxed", "recording" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:16.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "We are initiating a wav recording with the 8000Kpbs sampling rate. However the file size produced from this is too large (300KB) for the performance of the app. We need to be able to try 4000 and then 8000. But 4000 fails on some phones. In Native Android, there's a \"minBufferSize\" approach that provides the MinBufferSize, but this is not available to us in Titanium. How do we determine a device's minBuffersize that we can use?\r\n\r\nThis is the code we are using in Codeboxed that fails. \r\n\r\nvar recording = audioRecorder.createAudioRecord({\r\n fileName : 'test1',\r\n //sampleRate : _OBJ.SUPPORTED_SAMPLE_RATE[count],\r\n sampleRate : 4000,\r\n audioEncoding : 16,\r\n audioChannel : 'STEREO',\r\n audioSource : 'MIC',\r\n audioFormat : 'WAV'\r\n});\r\n\r\ntry {\r\n   recording.start();\r\n   startAnimation();\r\n  } catch(e) {\r\n   recording.sampleRate = 8000;\r\n   recording.start();\r\n   startAnimation();\r\n  }\r\n\r\nThis does't seem to catch the exception at 4000 and we get an \"Exceeded Buffer Size\" exception.", "attachment": [], "flagged": false, "summary": "Using Codeboxed module.. need Sampling Bitrate optimization", "creator": { "name": "psheth", "key": "psheth", "displayName": "Prashant Sheth", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "psheth", "key": "psheth", "displayName": "Prashant Sheth", "active": true, "timeZone": "America/Chicago" }, "environment": "Ti 1.7.6\r\nCodeboxed audio recording release\r\nAndroid SDK", "comment": { "comments": [ { "id": "245017", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Please contact the module developer about issues and features with their module:\r\nhttps://marketplace.appcelerator.com/apps/1215?347726402#support", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-04-01T21:17:56.000+0000", "updated": "2013-04-01T21:17:56.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }